This commit is contained in:
brooke 2025-03-04 00:44:59 -05:00
parent 07af2e0329
commit c03fe637bf

View file

@ -6,7 +6,7 @@ on:
jobs:
build-auto:
container:
image: docker:dind
image: node:lts-bookworm
steps:
- uses: actions/checkout@v3
with:
@ -29,7 +29,6 @@ jobs:
- name: Get tags from GitLab repository
id: get_tags
run: |
# Fetch the tags from the GitLab API
TAGS=$(curl --header "PRIVATE-TOKEN: ${{ secrets.GITLAB_ACCESS_TOKEN }}" "https://gitlab.com/api/v4/projects/liberaforms%2Fliberaforms/repository/tags" | jq -r '.[].name')
echo "::set-output name=tags::$TAGS"
@ -37,7 +36,6 @@ jobs:
id: filter_tags
run: |
TAGS="${{ steps.get_tags.outputs.tags }}"
# Filter tags to exclude those that end with 'RC[0-9]'
FILTERED_TAGS=$(echo "$TAGS" | grep -Ev 'RC[0-9]$' | sort -V | tail -n 1)
echo "Latest tag excluding RC: $FILTERED_TAGS"
echo "::set-output name=latest_tag::$FILTERED_TAGS"