Skip to content

Commit 0a9ddf6

Browse files
Update antora-generator.yml
Only trigger generator if the PR has access to the required secrets.
1 parent 3231637 commit 0a9ddf6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/antora-generator.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ jobs:
1212
name: Trigger antora generator
1313

1414
runs-on: Ubuntu-latest
15-
15+
16+
env:
17+
MUP_KEY: ${{ secrets.MACHINE_USER_PAT }}
18+
1619
steps:
1720
- name: Trigger generator
21+
if: ${{ env.MUP_KEY != '' }}
1822
uses: peter-evans/repository-dispatch@v2
1923
with:
2024
token: ${{ secrets.MACHINE_USER_PAT }}
2125
event-type: antora-build-trigger
2226
repository: OpenSimulationInterface/osi-antora-generator
2327
client-payload: '{"src": "${{ github.repository }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "head_ref": "${{ github.head_ref }}"}'
24-
28+

0 commit comments

Comments
 (0)