chore: GCForms release v3.27.0 #166
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |