Skip to content

Commit ea46579

Browse files
authored
Merge pull request #588 from AY2223S1-CS2103T-W16-2/richard/fix-build-workflow
Fix build workflow
2 parents 46764ce + 30fcff7 commit ea46579

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ jobs:
3131
run: ./gradlew shadowJar
3232
- name: Generate tag name from time
3333
id: tagname
34-
run: echo ::set-output name=TAGNAME::$(echo ${{ github.event.repository.pushed_at }} | sed -e 's/^../AR/')
34+
run: echo ::set-output name=TAGNAME::$(echo $(date +%s) | sed -e 's/^../AR/')
3535
- name: Generate release name from time
3636
id: releasename
37-
run: echo "::set-output name=RELEASENAME::$(date -d @${{ github.event.repository.pushed_at }})"
37+
run: echo "::set-output name=RELEASENAME::$(date '%e %b %Y, %H:%M %Z')"
38+
env:
39+
TZ: Asia/Singapore
3840
- name: Create release on GitHub
3941
id: create_release # We need the id to refer to it in the next step
4042
uses: actions/create-release@v1

0 commit comments

Comments
 (0)