Skip to content

Commit 70a85af

Browse files
chore: append timestamp and SHA to version (#165)
1 parent 9dcd551 commit 70a85af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Generate version
2727
id: calver
2828
run: |
29-
export VERSION=$(date "+%Y.%m.%d")
29+
export VERSION=$(date "+%Y.%m.%d.%H%M")
3030
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
3131
- name: Publish release
3232
if: github.event_name == 'push' && startsWith(github.event.head_commit.message, 'chore(release)')
@@ -43,9 +43,9 @@ jobs:
4343
uses: release-drafter/release-drafter@v6
4444
id: draft
4545
with:
46-
tag: ${{ steps.calver.outputs.version }}
47-
name: ${{ steps.calver.outputs.version }}
48-
version: ${{ steps.calver.outputs.version }}
46+
tag: ${{ steps.calver.outputs.version }}.${{ github.sha }}
47+
name: ${{ steps.calver.outputs.version }}.${{ github.sha }}
48+
version: ${{ steps.calver.outputs.version }}.${{ github.sha }}
4949
env:
5050
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
5151
- name: Update changelog

0 commit comments

Comments
 (0)