Skip to content

Commit b11bbb9

Browse files
authored
Update main.yml add timestamp #GITBUILD
1 parent 6c4f22e commit b11bbb9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/main.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
# Steps represent a sequence of tasks that will be executed as part of the job
2121
steps:
22-
- name: Install 7Zip PowerShell Module
22+
- name: Check Commit and Install 7Zip PowerShell Module
2323
shell: powershell
2424

2525
run: |
@@ -45,6 +45,10 @@ jobs:
4545
- name: Build Artifact
4646
shell: cmd
4747
run: call .\ArtifactBuild.cmd
48+
49+
- name: Get current date and time
50+
id: datetime
51+
run: echo "CURRENT_DATETIME=$(date +'%d/%m/%Y %H:%M')" >> $GITHUB_ENV
4852

4953
- name: Create Release
5054
id: create_release
@@ -53,7 +57,7 @@ jobs:
5357
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5458
with:
5559
tag_name: ${{github.run_number}}
56-
release_name: Release ${{github.run_number}}
60+
release_name: ${{ env.CURRENT_DATETIME }} (${{ github.run_number }})
5761
body: |
5862
Automated Release by GitHub Action CI
5963
draft: false

0 commit comments

Comments
 (0)