Skip to content

Commit a968d09

Browse files
committed
feat: Update versioning and release date format
This commit updates the versioning and release date format in the `check.yml` workflow. The version string now includes the datetime, branch, and short hash. The release date format has also been updated to include the time. This provides more granular information for releases.
1 parent a1c8f05 commit a968d09

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/check.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Check
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
tags-ignore:
8+
- '**'
9+
pull_request:
10+
workflow_dispatch:
411

512
jobs:
613
validate:
@@ -104,10 +111,10 @@ jobs:
104111
run: |
105112
branch=$(git rev-parse --abbrev-ref HEAD)
106113
hash=$(git rev-parse --short=7 HEAD)
107-
date=$(date +'%Y%m%d')
108-
echo "$branch.$hash.$date" > version.txt
109-
echo "VERSION=$branch.$hash.$date" >> $GITHUB_ENV
110-
echo "RELEASE_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
114+
datetime=$(date +'%Y%m%d.%H%M%S')
115+
echo "$datetime.$branch.$hash" > version.txt
116+
echo "VERSION=$datetime.$branch.$hash" >> $GITHUB_ENV
117+
echo "RELEASE_DATE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
111118
112119
- name: Create ZIP Archive
113120
run: |
@@ -119,8 +126,6 @@ jobs:
119126
tag_name: ${{ env.VERSION }}
120127
name: Translation Update ${{ env.RELEASE_DATE }}
121128
body: |
122-
Version: ${{ env.VERSION }}
123-
124129
This is an automated release of the latest translation data.
125130
files: |
126131
Gakumas-Translation-Data-EN-${{ env.VERSION }}.zip

0 commit comments

Comments
 (0)