Skip to content

Commit 9a2dcd6

Browse files
authored
Update main.yml #GITBUILD
1 parent 3b41aee commit 9a2dcd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: Get current date and time
5050
id: datetime
51-
run: echo "CURRENT_DATETIME=$(date +'%d/%m/%Y %H:%M')" >> $GITHUB_ENV
51+
run: echo "::set-output name=current_datetime::$(date +'%d/%m/%Y %H:%M')"
5252

5353
- name: Create Release
5454
id: create_release
@@ -57,7 +57,7 @@ jobs:
5757
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5858
with:
5959
tag_name: ${{github.run_number}}
60-
release_name: ${{ env.CURRENT_DATETIME }} (${{ github.run_number }})
60+
release_name: ${{ steps.datetime.outputs.current_datetime }} (${{ github.run_number }})
6161
body: |
6262
Automated Release by GitHub Action CI
6363
draft: false

0 commit comments

Comments
 (0)