Skip to content

Commit 34f83b8

Browse files
committed
runner test
1 parent 8c3f3aa commit 34f83b8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build then Draft Release
1+
name: Build and Draft Release
22

33
on:
44
push:
@@ -16,10 +16,22 @@ jobs:
1616
- name: Build Lua script
1717
run: bash build.sh
1818

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+
1930
- name: Create Draft Release
2031
uses: softprops/action-gh-release@v2
2132
with:
2233
draft: true
2334
files: WirtsTools.lua
35+
tag_name: ${{ steps.create_tag.outputs.tag_name }}
2436
env:
2537
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

0 commit comments

Comments
 (0)