File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
outputs :
9
9
current_tag : ${{ steps.tag.outputs.current_tag }}
10
+ trigger_branch : ${{ steps.branch.outputs.trigger_branch }}
10
11
steps :
12
+ - name : Determine trigger branch name
13
+ id : branch
14
+ run : echo "::set-output name=trigger_branch::${GITHUB_REF#refs/*/}"
11
15
- uses : actions/checkout@v2
12
16
with :
13
17
persist-credentials : false
@@ -34,11 +38,13 @@ jobs:
34
38
35
39
docs-publish :
36
40
needs : release
37
- if : needs.release.outputs.current_tag != ''
41
+ if : needs.release.outputs.current_tag != '' && github.ref == 'refs/heads/release'
38
42
runs-on : ubuntu-18.04
39
43
timeout-minutes : 15
40
44
steps :
41
45
- uses : actions/checkout@v2
46
+ with :
47
+ ref : ${{ github.ref }}
42
48
- name : Use Node.js
43
49
uses : actions/setup-node@v1
44
50
with :
You can’t perform that action at this time.
0 commit comments