dependencies.yml 920 B

1234567891011121314151617181920212223242526272829
  1. name: Update dependencies
  2. on:
  3. workflow_dispatch: {}
  4. # schedule:
  5. # - cron: '34 3 * * */8'
  6. jobs:
  7. check:
  8. name: Check for updates
  9. runs-on: ubuntu-latest
  10. if: github.repository == 'ohmyzsh/ohmyzsh'
  11. steps:
  12. - name: Checkout
  13. uses: actions/checkout@v4
  14. - name: Authenticate as @ohmyzsh
  15. id: generate_token
  16. uses: ohmyzsh/github-app-token@v2
  17. with:
  18. app_id: ${{ secrets.OHMYZSH_APP_ID }}
  19. private_key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}
  20. - name: Process dependencies
  21. env:
  22. GH_TOKEN: ${{ steps.generate_token.outputs.token }}
  23. GIT_APP_NAME: ohmyzsh[bot]
  24. GIT_APP_EMAIL: 54982679+ohmyzsh[bot]@users.noreply.github.com
  25. TMP_DIR: ${{ runner.temp }}
  26. run: |
  27. pip install -r .github/workflows/dependencies/requirements.txt
  28. python3 .github/workflows/dependencies/updater.py