mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-12-16 00:47:02 +01:00
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:
7
.github/workflows/update-easyrsa-hash.yml
vendored
7
.github/workflows/update-easyrsa-hash.yml
vendored
@@ -1,8 +1,9 @@
|
|||||||
name: Update Easy-RSA SHA256
|
name: Update Easy-RSA SHA256
|
||||||
|
|
||||||
# Note: This workflow commits and pushes changes to openvpn-install.sh.
|
# 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.
|
# Uses PAT to trigger CI on the resulting commit. Infinite recursion is prevented
|
||||||
# See: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#preventing-workflow-runs-from-recursively-generating-new-workflow-runs
|
# 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:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -23,7 +24,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.PAT }}
|
||||||
|
|
||||||
- name: Extract version and update SHA256
|
- name: Extract version and update SHA256
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user