Skip to content

Commit dec6a8d

Browse files
committed
Move Trigger Docs Build into a separate job
Closes gh-41461
1 parent fc5fc7f commit dec6a8d

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/build-and-deploy-snapshot.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
push:
44
branches:
55
- '3.3.x'
6-
permissions:
7-
actions: write
86
concurrency:
97
group: ${{ github.workflow }}-${{ github.ref }}
108
jobs:
@@ -32,10 +30,6 @@ jobs:
3230
folder: 'deployment-repository'
3331
signing-key: ${{ secrets.GPG_PRIVATE_KEY }}
3432
signing-passphrase: ${{ secrets.GPG_PASSPHRASE }}
35-
- name: Trigger Docs Build Workflow
36-
env:
37-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
run: gh workflow run deploy-docs.yml -r docs-build -f build-refname=${{ github.ref_name }} -f build-version=${{ steps.build.outputs.version }}
3933
- name: Send Notification
4034
uses: ./.github/actions/send-notification
4135
if: always()
@@ -46,6 +40,17 @@ jobs:
4640
run-name: ${{ format('{0} | Linux | Java 17', github.ref_name) }}
4741
outputs:
4842
version: ${{ steps.build-and-publish.outputs.version }}
43+
trigger-docs-build:
44+
name: Trigger Docs Build
45+
runs-on: ubuntu-latest
46+
needs: build-and-deploy-snapshot
47+
permissions:
48+
actions: write
49+
steps:
50+
- name: Run Deploy Docs Workflow
51+
env:
52+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
run: gh workflow run deploy-docs.yml -r docs-build -f build-refname=${{ github.ref_name }} -f build-version=${{ needs.build-and-deploy-snapshot.outputs.version }}
4954
verify:
5055
name: Verify
5156
needs: build-and-deploy-snapshot

0 commit comments

Comments
 (0)