update catalog every sunday #294
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: update catalog every sunday | |
on: | |
schedule: | |
- cron: "0 0 * * SUN" | |
jobs: | |
build: | |
name: Update the catalog.csv | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.TOPJOR_GITHUB_TOKEN }} | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: 'python -m pip install --upgrade pip pip install requests PyGithub pathlib GitPython pyyaml' | |
- name: Update the catalog.csv | |
env: | |
SECRET: ${{ secrets.TOPJOR_GITHUB_TOKEN }} | |
run: python .github/scripts/update_catalog.py | |
- name: Push the Changes | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "updated catalog" | |
git push -f origin master | |