Skip to content

Commit 88e499f

Browse files
committed
fix: make version bump idempotent to handle re-dispatches
1 parent 2d2fc6d commit 88e499f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/sync-schema.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ jobs:
4646
run: |
4747
WORKFLOW_VERSION="${{ github.event.client_payload.version }}"
4848
EXT_VERSION="${WORKFLOW_VERSION#v}"
49-
npm version "${EXT_VERSION}" --no-git-tag-version
49+
CURRENT_VERSION=$(node -p "require('./package.json').version")
50+
if [ "${CURRENT_VERSION}" = "${EXT_VERSION}" ]; then
51+
echo "Version already at ${EXT_VERSION}, skipping"
52+
else
53+
npm version "${EXT_VERSION}" --no-git-tag-version
54+
fi
5055
5156
- name: Install and build
5257
run: |

0 commit comments

Comments
 (0)