Skip to content

Commit

Permalink
revert autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
patel-bhavin committed Nov 2, 2023
1 parent 50dd3a4 commit 422a106
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
name: auto-update
on:
push:
branches:
- develop
jobs:
push: {}
jobs:

validate-tag-if-present:
runs-on: ubuntu-latest

steps:
- name: TAGGED, Validate that the tag is in the correct format

run: |
echo "The GITHUB_REF: $GITHUB_REF"
#First check to see if the release is a tag
if [[ $GITHUB_REF =~ refs/tags/* ]]; then
#Yes, this is a tag, so we need to test to make sure that the tag
#is in the correct format (like v1.10.20)
if [[ $GITHUB_REF =~ refs/tags/v[0-9]+.[0-9]+.[0-9]+ ]]; then
echo "PASS: Tagged release with good format"
exit 0
else
echo "FAIL: Tagged release with bad format"
exit 1
fi
else
echo "PASS: Not a tagged release"
exit 0
fi
autoupdate:
name: autoupdate
runs-on: ubuntu-latest
Expand Down

0 comments on commit 422a106

Please sign in to comment.