From 6b595bed3c757b7b3b938d37ee4923ce5d39518d Mon Sep 17 00:00:00 2001 From: Tony Garcia Date: Tue, 18 Jun 2024 16:22:56 -0500 Subject: [PATCH] Use epoch and not a ts for patching version --- .github/workflows/publish.yml | 2 +- galaxy.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5952a13..14e3d45 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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; diff --git a/galaxy.yml b/galaxy.yml index a82a1e2..5f8a79b 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -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