We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c3f3aa commit 34f83b8Copy full SHA for 34f83b8
1 file changed
.github/workflows/release.yml
@@ -1,4 +1,4 @@
1
-name: Build then Draft Release
+name: Build and Draft Release
2
3
on:
4
push:
@@ -16,10 +16,22 @@ jobs:
16
- name: Build Lua script
17
run: bash build.sh
18
19
+ - name: Create Tag
20
+ id: create_tag
21
+ run: |
22
+ BRANCH_NAME="${GITHUB_REF##*/}"
23
+ TAG_NAME="${BRANCH_NAME}-auto-$(date +'%Y%m%d-%H%M%S')"
24
+ git config user.name "github-actions"
25
+ git config user.email "github-actions@github.com"
26
+ git tag $TAG_NAME
27
+ git push origin $TAG_NAME
28
+ echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
29
+
30
- name: Create Draft Release
31
uses: softprops/action-gh-release@v2
32
with:
33
draft: true
34
files: WirtsTools.lua
35
+ tag_name: ${{ steps.create_tag.outputs.tag_name }}
36
env:
37
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
0 commit comments