File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1- name : Build then Draft Release
1+ name : Build and Draft Release
22
33on :
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 }}
You can’t perform that action at this time.
0 commit comments