Skip to content

Commit 4b70296

Browse files
Update main.yml
1 parent c76f733 commit 4b70296

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/main.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Generate tag name
12-
id: tag_name
13-
run: echo "TAG_NAME=$(date +%Y%m%d%H%M%S)" >> $GITHUB_OUTPUT
12+
id: generate_tag_name
13+
run: echo "TAG_NAME=$(date +'%Y-%m-%d-%H%M%S')" >> $GITHUB_OUTPUT
1414

1515
build:
1616
needs: prepare
@@ -75,8 +75,8 @@ jobs:
7575
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7676
run: |
7777
cd "${{ github.workspace }}/contrib"
78-
git tag ${{ steps.tag_name.outputs.TAG_NAME }}
79-
git push origin ${{ steps.tag_name.outputs.TAG_NAME }}
78+
git tag ${{ steps.generate_tag_name.outputs.TAG_NAME }}
79+
git push origin ${{ steps.generate_tag_name.outputs.TAG_NAME }}
8080
shell: bash
8181

8282
- name: Clean build and package
@@ -93,6 +93,6 @@ jobs:
9393
env:
9494
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9595
with:
96-
tag_name: ${{ steps.tag_name.outputs.TAG_NAME }}
96+
tag_name: ${{ steps.generate_tag_name.outputs.TAG_NAME }}
9797
files: |
9898
${{ github.workspace }}/contrib-build/contrib_build-${{runner.os}}.tar.gz

0 commit comments

Comments
 (0)