Add refs/tags to tag check
This commit is contained in:
parent
d53171ea25
commit
4df20b0dae
|
@ -26,7 +26,7 @@ jobs:
|
||||||
- name: Create tag if it doesn't exist
|
- name: Create tag if it doesn't exist
|
||||||
id: create
|
id: create
|
||||||
run: |
|
run: |
|
||||||
if git rev-parse "${{ steps.mlflow.outputs.mlflow }}"; then
|
if git rev-parse "refs/tags/${{ steps.mlflow.outputs.mlflow }}" 2>/dev/null; then
|
||||||
echo "Tag already exists"
|
echo "Tag already exists"
|
||||||
echo "created=false" >> $GITHUB_OUTPUT
|
echo "created=false" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue