We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1825079 commit 6d8fa4cCopy full SHA for 6d8fa4c
1 file changed
.github/workflows/build.yml
@@ -34,6 +34,16 @@ jobs:
34
run: x86_64-w64-mingw32-strip build/ghostinjector-*.exe
35
- name: Rename executable
36
run: mv build/ghostinjector-*.exe build/ghostinjector.exe
37
+
38
+ - name: Create Git Tag with Commit Message
39
+ if: (github.ref == 'refs/heads/main' && github.event_name == 'push') || startsWith(github.ref, 'refs/tags/v')
40
+ run: |
41
+ TAG_NAME="${{ (github.ref == 'refs/heads/main' && 'latest') || github.ref_name }}"
42
+ COMMIT_MSG=$(git log -1 --pretty=%B)
43
+ git config user.name "github-actions"
44
+ git config user.email "github-actions@github.com"
45
+ git tag -a "$TAG_NAME" -m "$COMMIT_MSG" -f
46
+ git push origin "$TAG_NAME" -f
47
48
- name: Create Release
49
if: (github.ref == 'refs/heads/main' && github.event_name == 'push') || startsWith(github.ref, 'refs/tags/v')
0 commit comments