Skip to content

Commit

Permalink
Create version ID with date and commit ID
Browse files Browse the repository at this point in the history
  • Loading branch information
scouten-adobe committed Aug 25, 2023
1 parent 99b4dbf commit f913b7e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@ jobs:
id: set-version
with:
tag_prefix: "v"
format: "${major}.${minor}.${patch}-nightly"
version_format: "${major}.${minor}.${patch}"
major_pattern: "(MAJOR)"
minor_pattern: "(MINOR)"

- name: Add -nightly-(commit ID) prefix to version
id: set-version-with-date
run: |
echo ${{ steps.set-version.outputs.version }}-nightly-`date %F`-`git rev-parse --short HEAD`
- name: Log version & changelog
run: |
Expand All @@ -44,7 +49,6 @@ jobs:
echo "Latest tag detected: $LATEST_TAG"
env:
VERSION: ${{ steps.set-version.outputs.version }}
VERSION_TAG: ${{ steps.set-version.outputs.version_tag }}
LATEST_TAG: ${{ steps.get-latest-tag.outputs.tag }}

# - name: Prevent empty release
Expand Down

0 comments on commit f913b7e

Please sign in to comment.