Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
stockiNail committed Jan 24, 2024
1 parent 3168662 commit 5d6fba3
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,24 @@ jobs:
check-tag:
runs-on: ubuntu-latest
steps:
- name: Check Tag Name
env:
TAG_NAME: ${{ github.event.release.tag_name }}
REGEXP: '^v[0-9]+\.[0-9]+\.[0-9]+$' # Modifica questa regexp come necessario
run: |
if [[ "$TAG_NAME" =~ $REGEXP ]]; then
echo "Il tag matcha con la regexp."
# Aggiungi qui ulteriori azioni se la regexp corrisponde
else
echo "Il tag non matcha con la regexp."
# Opzionalmente, puoi fallire il workflow se non c'è match
exit 1
fi
- name: Check Tag Name
env:
TAG_NAME: ${{ github.event.release.tag_name }}
REGEXP: '^v[0-9]+\.[0-9]+\.[0-9]+$' # Modifica questa regexp come necessario
run: |
if [[ "$TAG_NAME" =~ $REGEXP ]]; then
echo "Il tag matcha con la regexp."
# Aggiungi qui ulteriori azioni se la regexp corrisponde
else
echo "Il tag non matcha con la regexp."
# Opzionalmente, puoi fallire il workflow se non c'è match
exit 1
fi
publish:
runs-on: ubuntu-latest
needs: check-tag
steps:
- name: Publish
run: |
echo "Publish"

0 comments on commit 5d6fba3

Please sign in to comment.