1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

ci(dependencies): add automation for updating external dependencies (#12109)

This commit is contained in:
Marc Cornellà
2023-12-20 10:21:31 +01:00
committed by GitHub
parent 48ccc7b36d
commit dd3be612e3
3 changed files with 496 additions and 0 deletions

26
.github/workflows/dependencies.yml vendored Normal file
View File

@@ -0,0 +1,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