Fix check if tag exists
Build and push mlflow container / Create mlflow tag (push) Failing after 5s Details
Build and push mlflow container / Build and push mlflow container (push) Has been skipped Details

This commit is contained in:
LordMathis 2024-01-31 14:25:46 +01:00
parent 9daa3d2a76
commit d53171ea25
1 changed files with 3 additions and 9 deletions

View File

@ -15,14 +15,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get latest git tag
id: tag
run: |
tag=$(git describe --tags --abbrev=0)
echo $tag
echo "tag=$tag" >> $GITHUB_OUTPUT
- name: Fetch tags
run: git fetch --tags origin
- name: Get mlflow version
id: mlflow
run: |
@ -32,7 +26,7 @@ jobs:
- name: Create tag if it doesn't exist
id: create
run: |
if git rev-parse "${{ steps.tag.outputs.tag }}"; then
if git rev-parse "${{ steps.mlflow.outputs.mlflow }}"; then
echo "Tag already exists"
echo "created=false" >> $GITHUB_OUTPUT
else