mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-29 03:43:04 +01:00
Add .github/workflows/actions.lock, generated by gh actions-lock. It records the commit for every action the workflows use, including actions called by other actions. Workflows now reference release tags and the lockfile holds the commit that runs. Verify the lockfile in the Workflow lint job so a workflow change that skips regenerating it fails the pull request. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
name: Update dependencies
|
|
on:
|
|
workflow_dispatch: {}
|
|
schedule:
|
|
- cron: "0 6 * * 0"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check:
|
|
name: Check for updates
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
if: github.repository == 'ohmyzsh/ohmyzsh'
|
|
permissions:
|
|
contents: write # this is needed to push commits and branches
|
|
steps:
|
|
- name: Harden the runner (Audit all outbound calls)
|
|
uses: step-security/harden-runner@v2.23.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v7.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Authenticate as @ohmyzsh
|
|
id: generate-token
|
|
uses: actions/create-github-app-token@v3.4.0
|
|
with:
|
|
client-id: ${{ secrets.OHMYZSH_CLIENT_ID }}
|
|
private-key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}
|
|
permission-contents: read
|
|
permission-issues: write
|
|
permission-pull-requests: write
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v7.1.0
|
|
with:
|
|
python-version: "3.12"
|
|
cache: "pip"
|
|
- name: Process dependencies
|
|
env:
|
|
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
|
|
GIT_APP_NAME: ohmyzsh[bot]
|
|
GIT_APP_EMAIL: 54982679+ohmyzsh[bot]@users.noreply.github.com
|
|
TMP_DIR: ${{ runner.temp }}
|
|
run: |
|
|
pip install -r .github/workflows/dependencies/requirements.txt
|
|
python3 .github/workflows/dependencies/updater.py
|