fix: use PAT to trigger CI after hash update (#1337)

- Commits made with `GITHUB_TOKEN` don't trigger workflows
- Using a PAT allows the hash update commit to trigger CI checks
- Fixes the issue where PR #1335 didn't have CI triggered after the hash
update
This commit is contained in:
Stanislas
2025-12-10 18:23:58 +01:00
committed by GitHub
parent a6154c2653
commit ba1d0419a8

View File

@@ -1,8 +1,9 @@
name: Update Easy-RSA SHA256
# Note: This workflow commits and pushes changes to openvpn-install.sh.
# Infinite recursion is prevented because pushes made with GITHUB_TOKEN do not trigger workflows.
# See: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#preventing-workflow-runs-from-recursively-generating-new-workflow-runs
# Uses PAT to trigger CI on the resulting commit. Infinite recursion is prevented
# by the 'renovate/' branch prefix check - CI commits don't re-trigger this workflow.
# Requires: Create a PAT with 'contents: write' scope and add as repository secret 'PAT'
on:
pull_request:
@@ -23,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PAT }}
- name: Extract version and update SHA256
run: |