File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 33
33
branch : ${{ steps.branch-name.outputs.value }}
34
34
branch-exists : ${{ steps.branch-exists.outputs.flag == '1' }}
35
35
36
- sync-latest :
36
+ sync-and-release :
37
37
runs-on : ubuntu-latest
38
38
needs : get-meta
39
39
if : needs.get-meta.outputs.branch == 'release/latest'
@@ -47,13 +47,13 @@ jobs:
47
47
uses : actions/checkout@v3
48
48
49
49
- name : Create branch
50
- if : ${{ ! needs.get-meta.outputs.branch-exists }}
50
+ if : ${{ needs.get-meta.outputs.branch-exists == 'false' }}
51
51
run : |
52
52
git checkout -b ${{ needs.get-meta.outputs.branch }}
53
53
git push -u origin ${{ needs.get-meta.outputs.branch }}
54
54
55
55
- name : Checkout branch
56
- if : ${{ needs.get-meta.outputs.branch-exists }}
56
+ if : ${{ needs.get-meta.outputs.branch-exists == 'true' }}
57
57
run : git checkout ${{ needs.get-meta.outputs.branch }}
58
58
59
59
- name : Override branch using tag HEAD
81
81
runs-on : ubuntu-latest
82
82
needs : get-meta
83
83
steps :
84
+ - name : Checkout to tag
85
+ uses : actions/checkout@v3
86
+ with :
87
+ ref : ${{ github.event.release.tag_name }}
88
+
84
89
- uses : actions/setup-node@v1
85
90
with :
86
91
node-version : 16
You can’t perform that action at this time.
0 commit comments