Skip to content

Commit

Permalink
rolling release: Add timestamp to version numbers (#39701)
Browse files Browse the repository at this point in the history
Apparently Atomic doesn't just pick the latest release, they also
require that the new version number compares greater than the old one as
measured by `version_compare()`. So we'll have to throw a timestamp in
after all.

Committed via a GitHub action: https:/Automattic/jetpack/actions/runs/11259970748

Upstream-Ref: Automattic/jetpack@77c7a79
  • Loading branch information
anomiex authored and matticbot committed Oct 9, 2024
1 parent 9bce786 commit 9cf8eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/files/autorelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ elif [[ "$GITHUB_REF" == "refs/heads/trunk" ]]; then
fi
ROLLING_MODE=true
CURRENT_VER=$( sed -nEe 's/^## \[?([^]]*)\]? - .*/\1/;T;p;q' CHANGELOG.md || true )
GIT_SUFFIX=$( git log -1 --format=%h . )
GIT_SUFFIX=$( git log -1 --format="%ct.g%h" . )
TAG="$CURRENT_VER+rolling.$GIT_SUFFIX"
else
echo "::error::Expected GITHUB_REF like \`refs/tags/v1.2.3\` or \`refs/tags/1.2.3\` or \`refs/heads/trunk\` for rolling releases, got \`$GITHUB_REF\`"
Expand Down

0 comments on commit 9cf8eca

Please sign in to comment.