Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix github action
Browse files Browse the repository at this point in the history
cviolbarbosa committed Mar 18, 2024
1 parent 22f3b53 commit 87f9c8f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -4,8 +4,6 @@ on:
push:
branches:
- test
tags:
- '*.*.*'

jobs:
build-and-push:
@@ -15,6 +13,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Fail if no tag
run: |
if ! git describe --tags --exact-match >/dev/null 2>&1; then
echo "This commit does not have a tag, failing the workflow."
exit 0
fi
- name: Get repository tag
run: echo "RELEASE_VERSION=${github.ref#refs/*/}" >> $GITHUB_ENV

0 comments on commit 87f9c8f

Please sign in to comment.