We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc67978 commit fdc4bb8Copy full SHA for fdc4bb8
.github/workflows/monthly-release.yml
@@ -25,6 +25,11 @@ jobs:
25
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26
RELEASE_DATE: ${{ steps.date.outputs.date }}
27
run: |
28
- gh release create "${RELEASE_DATE}" \
29
- --title "${RELEASE_DATE}" \
30
- --notes "Monthly release for ${RELEASE_DATE}. This release was automatically created by GitHub Actions."
+ # Check if release already exists
+ if gh release view "${RELEASE_DATE}" >/dev/null 2>&1; then
+ echo "Release ${RELEASE_DATE} already exists, skipping creation"
31
+ else
32
+ gh release create "${RELEASE_DATE}" \
33
+ --title "${RELEASE_DATE}" \
34
+ --notes "Monthly release for ${RELEASE_DATE}. This release was automatically created by GitHub Actions."
35
+ fi
0 commit comments