summaryrefslogtreecommitdiff
path: root/.github/workflows/dependencies.yml
blob: c27ad79982808324f1559b5e12d34ef1770d62db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Update dependencies
on:
  workflow_dispatch: {}
  # schedule:
  #   - cron: '34 3 * * */8'

jobs:
  check:
    name: Check for updates
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        if: github.repository == 'ohmyzsh/ohmyzsh'
        uses: actions/checkout@v4
      - name: Authenticate as @ohmyzsh
        uses: ohmyzsh/github-app-token@v2
        with:
          app-id: ${{ secrets.OHMYZSH_APP_ID }}
          private-key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}
      - name: Process dependencies
        env:
          GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
          TMP_DIR: ${{ env.RUNNER_TEMP }}
        run: |
          gh auth login --with-token <<< "${GITHUB_TOKEN}"
          python3 .github/workflows/dependencies/updater.py