We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88e499f commit 7d3a323Copy full SHA for 7d3a323
1 file changed
.github/workflows/sync-schema.yml
@@ -68,5 +68,9 @@ jobs:
68
git diff --cached --quiet && echo "No changes" && exit 0
69
git commit -m "chore: sync schema and version to workflow ${WORKFLOW_VERSION}"
70
git push
71
- git tag "${WORKFLOW_VERSION}"
72
- git push origin "${WORKFLOW_VERSION}"
+ if git rev-parse "${WORKFLOW_VERSION}" >/dev/null 2>&1; then
+ echo "Tag ${WORKFLOW_VERSION} already exists, skipping"
73
+ else
74
+ git tag "${WORKFLOW_VERSION}"
75
+ git push origin "${WORKFLOW_VERSION}"
76
+ fi
0 commit comments