Skip to content

chore: GCForms release v3.27.0 #166

chore: GCForms release v3.27.0

chore: GCForms release v3.27.0 #166

name: "Terragrunt plan PRODUCTION warn release exists"
on:
pull_request:
branches:
- main
paths:
- "version.txt"
jobs:
warn-release-exists:
if: ${{ startsWith(github.head_ref, 'release-please--') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Get version
run: echo "version=v$(cat version.txt)" >> $GITHUB_ENV
- name: Fail if release tag exists # this happens if there is a revert and the reverted release and tag is not deleted
run: |
git fetch --tags > /dev/null 2>&1
if git rev-parse "$version" >/dev/null 2>&1; then
echo "Tag $version exists..."
echo "Please delete the release and tag and try again."
exit 1
fi