Skip to content

Commit

Permalink
Use epoch and not a ts for patching version
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyskapunk committed Jun 18, 2024
1 parent f506373 commit 6b595be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Add release, date and commit hash to version in galaxy.yml
id: galaxy
run: >
ts=$(TZ=UTC0 git show ${{ github.sha }} --no-patch --format=%cd --date=format-local:'%Y%m%d%H%M')
ts=$(TZ=UTC0 git show ${{ github.sha }} --no-patch --format=%cd --date=format-local:'%s')
sha=$(echo "${{ github.sha }}" | cut -c1-7);
sed -i -r "s/^(version: .*)\.0$/\1.${ts}/" galaxy.yml;
grep ^version galaxy.yml;
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: beat
# Always leave patch version as .0
# Patch version is replaced from commit date in epoch format
# example: 1.2.${epoch}
version: 1.2.0
version: 1.3.0
readme: README.md
authors:
- Tony Garcia
Expand Down

0 comments on commit 6b595be

Please sign in to comment.