We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ded9e4 commit 0aee4aaCopy full SHA for 0aee4aa
.github/workflows/flow-generate-release-notes.yaml
@@ -52,6 +52,22 @@ jobs:
52
echo "Release identifier is valid: ${release_identifier}"
53
echo "release-identifier=${release_identifier}" >> ${GITHUB_OUTPUT}
54
55
+ - name: Validate Tag Exists
56
+ run: |
57
+ tag="v${{ steps.validate.outputs.release-identifier }}"
58
+
59
+ echo "Checking if tag ${tag} exists..."
60
61
+ # Check if the tag exists in the repository
62
+ git fetch --tags
63
64
+ if git rev-parse "$tag" >/dev/null 2>&1; then
65
+ echo "Tag '${tag}' found."
66
+ else
67
+ echo "Error: Tag '${tag}' does not exist."
68
+ exit 1
69
+ fi
70
71
- name: Checkout Code
72
id: checkout_code
73
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
0 commit comments