Dependencies parser #1058
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: Dependencies parser | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
repository_dispatch: | |
push: | |
branches: | |
- "master" | |
paths: | |
- ".github/workflows/dependencies.yml" | |
- ".github/workflows/dependenciesParser.py" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'canada-ca' | |
steps: | |
- name: Checkout Main repo | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PUSH_API_TOKEN }} | |
- name: Dependencies parser | |
run: ./.github/workflows/dependenciesParser.py | |
- name: Commit changes | |
run: | | |
git add _data/dependencies.yaml | |
git config --global user.email "[email protected]" | |
git config --global user.name "canada-bot" | |
git commit -m "Updating dependencies" || true | |
git push |