Skip to content

Commit 7392310

Browse files
committed
Actions: Append timestamp to release tags
This makes releases be organized in chronological order. Otherwise, they appear scattered on the releases page. Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
1 parent 0c749eb commit 7392310

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ jobs:
6262
run: |
6363
LONG_SHA=${{ github.sha }}
6464
echo "sha=${LONG_SHA::7}" >> $GITHUB_OUTPUT
65+
- name: Get timestamp
66+
id: timestamp
67+
run: echo "timestamp=$(date +'%Y.%m.%d.%H%M')" >> $GITHUB_OUTPUT
6568
- name: Install dependencies
6669
run: deno install
6770
- name: Save SHA to textfile
@@ -112,7 +115,7 @@ jobs:
112115
if: ${{ github.event_name != 'workflow_dispatch' }}
113116
with:
114117
file: ${{ steps.folder-name.outputs.name }}.zip
115-
tag: ${{ steps.sha.outputs.sha }}
118+
tag: ${{ steps.timestamp.outputs.timestamp }}-${{ steps.sha.outputs.sha }}
116119
overwrite: true
117120
release_name: YALS-${{ steps.sha.outputs.sha }}
118121
body: |
@@ -189,6 +192,9 @@ jobs:
189192
- name: Get short SHA
190193
id: sha
191194
run: echo "sha=$("${{ github.sha }}".Substring(0,7))" >> $env:GITHUB_OUTPUT
195+
- name: Get timestamp
196+
id: timestamp
197+
run: echo "timestamp=$(Get-Date -Format 'yyyy.MM.dd.HHmm')" >> $env:GITHUB_OUTPUT
192198
- name: Install dependencies
193199
run: deno install
194200
- name: Save SHA to textfile
@@ -239,7 +245,7 @@ jobs:
239245
if: ${{ github.event_name != 'workflow_dispatch' }}
240246
with:
241247
file: ${{ steps.folder-name.outputs.name }}.zip
242-
tag: ${{ steps.sha.outputs.sha }}
248+
tag: ${{ steps.timestamp.outputs.timestamp }}-${{ steps.sha.outputs.sha }}
243249
overwrite: true
244250
release_name: YALS-${{ steps.sha.outputs.sha }}
245251
body: |

0 commit comments

Comments
 (0)