Skip to content

Commit c663af8

Browse files
Update antora-build.yml
Only trigger generator if the PR has access to the required secrets.
1 parent 97d4e67 commit c663af8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/antora-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ jobs:
1212

1313
runs-on: Ubuntu-latest
1414

15+
env:
16+
MUP_KEY: ${{ secrets.MACHINE_USER_PAT }}
17+
1518
steps:
1619
- name: Trigger generator
20+
if: ${{ env.MUP_KEY != '' }}
1721
uses: peter-evans/repository-dispatch@v2
1822
with:
1923
token: ${{ secrets.MACHINE_USER_PAT }}
@@ -66,4 +70,4 @@ jobs:
6670
# name: antora-build
6771
# path: ./generator/site
6872

69-
73+

0 commit comments

Comments
 (0)