GRM-87: fix: always run publish in post-merge (idempotent)
This commit is contained in:
@@ -112,13 +112,8 @@ jobs:
|
|||||||
echo "No tag found — skipping publish"
|
echo "No tag found — skipping publish"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
HEAD_MSG=$(git log -1 --format=%s)
|
echo "Publishing release $TAG (idempotent — skips if already published)..."
|
||||||
if echo "$HEAD_MSG" | grep -q "^release: ${TAG}"; then
|
python3 -m devx.ci.publish "$TAG" "${{ github.repository }}"
|
||||||
echo "Publishing release $TAG..."
|
|
||||||
python3 -m devx.ci.publish "$TAG" "${{ github.repository }}"
|
|
||||||
else
|
|
||||||
echo "HEAD is not a release commit for $TAG — skipping publish"
|
|
||||||
fi
|
|
||||||
- name: Notify on failure
|
- name: Notify on failure
|
||||||
if: failure()
|
if: failure()
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user