From 85eb87c20143ec3185473781a76abe95abd20494 Mon Sep 17 00:00:00 2001 From: salvageop <293462701+CommunityMaintained@users.noreply.github.com> Date: Sun, 14 Jun 2026 19:35:27 -0500 Subject: [PATCH] fix(ci): remove CalVer, build version needs to be semver compliant --- .github/workflows/release-please.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 1ed333d..7061814 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -63,9 +63,6 @@ jobs: config-file: release-please-config.json manifest-file: .release-please-manifest.json - # After a release is published: update mix.exs to "semver (calver)" so the - # running app displays both (e.g. "1.0.0 (2026.06.14)"). - # Mix will warn that this isn't strict semver, which is fine for a Docker app. update-mix-version: name: Update mix.exs version string runs-on: ubuntu-latest @@ -80,21 +77,18 @@ jobs: ref: master ssh-key: ${{ secrets.RELEASE_DEPLOY_KEY }} - - name: Set combined version in mix.exs + - name: Set version in mix.exs run: | SEMVER=$(echo '${{ needs.release-please.outputs.tag_name }}' | sed 's/^v//') - DATE=$(date +"%Y.%-m.%-d") - DISPLAY="${SEMVER} (${DATE})" - sed -i "s|^ version: \".*\",| version: \"${DISPLAY}\",|" mix.exs + sed -i "s|^ version: \".*\",| version: \"${SEMVER}\",|" mix.exs - name: Commit and push run: | SEMVER=$(echo '${{ needs.release-please.outputs.tag_name }}' | sed 's/^v//') - DATE=$(date +"%Y.%-m.%-d") git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add mix.exs - git diff --cached --quiet || git commit -m "chore: set app version to ${SEMVER} (${DATE}) [skip ci]" + git diff --cached --quiet || git commit -m "chore: set app version to ${SEMVER} [skip ci]" git push docker: