From f1b2f145f8a9347ea7368e3ae1c43d970f13fa9a Mon Sep 17 00:00:00 2001 From: Pete Davids Date: Thu, 22 Feb 2024 10:34:33 -0500 Subject: [PATCH] yes? --- .github/workflows/pr.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 79d2cd7..c6d0a76 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -140,4 +140,24 @@ jobs: run: make - name: Run Unit Tests - run: make acc-test \ No newline at end of file + run: make acc-test + version_check: + + name: Check version availability + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + persist-credentials: false + + - name: Check version availability + run: | + VERSION_TAG=$(cat .go-version) + if [ $(git tag -l "$VERSION_TAG") ]; then + echo "Version tag $VERSION_TAG already exists, please update .go-version with the version you intend to publish" + exit 1 + fi \ No newline at end of file