dependencies.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. with:
  15. fetch-depth: 0
  16. - name: Authenticate as @ohmyzsh
  17. id: generate_token
  18. uses: ohmyzsh/github-app-token@v2
  19. with:
  20. app_id: ${{ secrets.OHMYZSH_APP_ID }}
  21. private_key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}
  22. - name: Setup Python
  23. uses: actions/setup-python@v5
  24. with:
  25. python-version: "3.12"
  26. cache: "pip"
  27. - name: Process dependencies
  28. env:
  29. GH_TOKEN: ${{ steps.generate_token.outputs.token }}
  30. GIT_APP_NAME: ohmyzsh[bot]
  31. GIT_APP_EMAIL: 54982679+ohmyzsh[bot]@users.noreply.github.com
  32. TMP_DIR: ${{ runner.temp }}
  33. run: |
  34. pip install -r .github/workflows/dependencies/requirements.txt
  35. python3 .github/workflows/dependencies/updater.py