dependencies.yml 782 B

1234567891011121314151617181920212223242526
  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. steps:
  11. - name: Checkout
  12. if: github.repository == 'ohmyzsh/ohmyzsh'
  13. uses: actions/checkout@v4
  14. - name: Authenticate as @ohmyzsh
  15. uses: ohmyzsh/github-app-token@v2
  16. with:
  17. app_id: ${{ secrets.OHMYZSH_APP_ID }}
  18. private_key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}
  19. - name: Process dependencies
  20. env:
  21. GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
  22. TMP_DIR: ${{ env.RUNNER_TEMP }}
  23. run: |
  24. gh auth login --with-token <<< "${GITHUB_TOKEN}"
  25. python3 .github/workflows/dependencies/updater.py