Commit 3ee56df 1 parent ef0168c commit 3ee56df Copy full SHA for 3ee56df
File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 29
29
with :
30
30
fetch-depth : 0
31
31
32
+ - name : Store repository head
33
+ id : head_before_release
34
+ shell : bash
35
+ run : echo head=$(git rev-parse HEAD) >> $GITHUB_OUTPUT
36
+
32
37
- name : Check conventional commits
33
38
34
39
# We handle the failure explicitely so this doesn't block the build
55
60
- name : Compute workflow outputs
56
61
id : outputs
57
62
run : |
58
- if [[ "${{ steps.check.outcome }}" == "success" && "${{ steps.release.outcome }}" == "success" ]]; then
63
+ if [[ "${{ steps.check.outcome }}" == "success" && "${{ steps.release.outcome }}" == "success" && "$(git rev-parse HEAD)" != "${{ steps.head_before_release.outputs.head }}" ]]; then
59
64
echo "A new release will be created: ${{ steps.release.outputs.version }}"
60
65
61
66
# Generate changelog
@@ -261,14 +266,14 @@ jobs:
261
266
262
267
- name : Prepare release
263
268
run : |
264
- RELEASE_NAME=$(git describe --tags --abbrev=0)
269
+ RELEASE_NAME=$(git describe --tags --abbrev=0 --always )
265
270
(cd target/${{ matrix.target }}/release && tar czf ${{ github.workspace }}/target/glslt-$RELEASE_NAME-${{ matrix.target }}.tar.gz glsltc)
266
271
if : matrix.os == 'ubuntu-latest'
267
272
268
273
- name : Prepare release
269
274
run : |
270
275
del target\glslt*.tar.gz
271
- $ReleaseName = & git describe --tags --abbrev=0
276
+ $ReleaseName = & git describe --tags --abbrev=0 --always
272
277
cd target/${{ matrix.target }}/release
273
278
7z a ${{ github.workspace }}/target/glslt-$ReleaseName-${{ matrix.target }}.7z glsltc.exe
274
279
if : matrix.os == 'windows-latest'
You can’t perform that action at this time.
0 commit comments