Skip to content

Commit

Permalink
fix go-version staling (#213)
Browse files Browse the repository at this point in the history
* no

* Revert "no"

This reverts commit 7fbb34a.

* yes?

* yes

* yes

* yes

* yay

* yay

* yes
  • Loading branch information
MisterSquishy authored Feb 22, 2024
1 parent 7507aba commit 6bafd6e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,26 @@ jobs:
run: make

- name: Run Unit Tests
run: make acc-test
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: |
git fetch --tags
VERSION_TAG=$(cat .go-version)
if [ $(git tag -l "v$VERSION_TAG") ]; then
echo "Version tag v$VERSION_TAG already exists, please update .go-version with the version you intend to publish"
exit 1
else
echo "Version v$VERSION_TAG is available"
fi
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1.91.2
1.91.4

0 comments on commit 6bafd6e

Please sign in to comment.