diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 9a90082..3ad27a6 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -30,12 +30,7 @@ jobs: - name: Get tags from GitLab repository id: get_tags - run: | - tags=$(curl -s https://framagit.org/api/v4/projects/74246/repository/tags) - echo "API response: $tags" - latest_tag=$(echo $tags | jq -r '.[0].name') - echo "Latest tag: $latest_tag" - echo "::set-output name=latest_tag::$latest_tag" + run: latest_tag=$(curl -s https://framagit.org/api/v4/projects/74246/repository/tags | grep -o -E 'v[0-9]+\.[0-9]+\.[0-9]+' | head -n 1) && echo "Latest version is: $latest_tag" - name: Build and Push with Latest Tag uses: docker/build-push-action@v4