dependencies.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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: Setup Python
  21. uses: actions/setup-python@v5
  22. with:
  23. python-version: "3.12"
  24. cache: "pip"
  25. - name: Process dependencies
  26. env:
  27. GH_TOKEN: ${{ steps.generate_token.outputs.token }}
  28. GIT_APP_NAME: ohmyzsh[bot]
  29. GIT_APP_EMAIL: 54982679+ohmyzsh[bot]@users.noreply.github.com
  30. TMP_DIR: ${{ runner.temp }}
  31. run: |
  32. pip install -r .github/workflows/dependencies/requirements.txt
  33. python3 .github/workflows/dependencies/updater.py