Run GitHub Email Scraper #9043
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run GitHub Email Scraper | |
on: | |
schedule: | |
- cron: '*/6 * * * *' | |
workflow_dispatch: # Allows manual trigger from GitHub Actions | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests | |
- name: Run script | |
env: | |
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }} | |
MY_GITHUB_API_KEYS: ${{ secrets.MY_GITHUB_API_KEYS }} | |
run: | | |
echo $MY_GITHUB_API_KEYS > github_api_keys.txt | |
python cloud.py |