Skip to content

Commit f34158b

Browse files
committed
trigger docs publish only for stable release
1 parent 4f6dbdb commit f34158b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release-automated.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
outputs:
99
current_tag: ${{ steps.tag.outputs.current_tag }}
10+
trigger_branch: ${{ steps.branch.outputs.trigger_branch }}
1011
steps:
12+
- name: Determine trigger branch name
13+
id: branch
14+
run: echo "::set-output name=trigger_branch::${GITHUB_REF#refs/*/}"
1115
- uses: actions/checkout@v2
1216
with:
1317
persist-credentials: false
@@ -34,11 +38,13 @@ jobs:
3438

3539
docs-publish:
3640
needs: release
37-
if: needs.release.outputs.current_tag != ''
41+
if: needs.release.outputs.current_tag != '' && github.ref == 'refs/heads/release'
3842
runs-on: ubuntu-18.04
3943
timeout-minutes: 15
4044
steps:
4145
- uses: actions/checkout@v2
46+
with:
47+
ref: ${{ github.ref }}
4248
- name: Use Node.js
4349
uses: actions/setup-node@v1
4450
with:

0 commit comments

Comments
 (0)