File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 19
19
runs-on : ubuntu-latest
20
20
21
21
outputs :
22
- needs_build : ${{ steps.check_manual_run.outputs.needs_build || steps.check_tags.outputs.needs_build }}
22
+ needs_build : ${{ steps.check_manual_run.outputs.needs_build == 'true' || steps.check_tags.outputs.needs_build == 'true' }}
23
23
24
24
steps :
25
25
- name : Check if workflow was manually triggered
@@ -117,14 +117,7 @@ jobs:
117
117
env :
118
118
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
119
119
120
- - name : Delete old nightly release if it exists
121
- if : steps.check_nightly.outputs.release_exists
122
- run : |
123
- gh release delete nightly -y
124
- env :
125
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
126
-
127
- - name : Get commit SHA
120
+ - name : Get commit SHA of the last nightly release
128
121
id : get_commit_sha
129
122
if : steps.check_nightly.outputs.release_exists
130
123
run : |
@@ -142,13 +135,14 @@ jobs:
142
135
"sha": "${{ steps.get_commit_sha.outputs.prev_SHA }}"
143
136
}'
144
137
145
- - name : Remove current nightly tag before release
138
+ - name : Delete the existing nightly tag and release
146
139
if : steps.check_nightly.outputs.release_exists
147
140
run : |
148
- git tag -d nightly
149
- git push origin :refs/tags/nightly
141
+ gh release delete nightly -y --cleanup-tag
142
+ env :
143
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
150
144
151
- - name : Create Release if it does not exist
145
+ - name : Create a new nightly release
152
146
id : create_release
153
147
run : |
154
148
gh release create nightly \
You can’t perform that action at this time.
0 commit comments