update
This commit is contained in:
parent
07af2e0329
commit
c03fe637bf
1 changed files with 1 additions and 3 deletions
|
@ -6,7 +6,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build-auto:
|
build-auto:
|
||||||
container:
|
container:
|
||||||
image: docker:dind
|
image: node:lts-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
@ -29,7 +29,6 @@ jobs:
|
||||||
- name: Get tags from GitLab repository
|
- name: Get tags from GitLab repository
|
||||||
id: get_tags
|
id: get_tags
|
||||||
run: |
|
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')
|
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"
|
echo "::set-output name=tags::$TAGS"
|
||||||
|
|
||||||
|
@ -37,7 +36,6 @@ jobs:
|
||||||
id: filter_tags
|
id: filter_tags
|
||||||
run: |
|
run: |
|
||||||
TAGS="${{ steps.get_tags.outputs.tags }}"
|
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)
|
FILTERED_TAGS=$(echo "$TAGS" | grep -Ev 'RC[0-9]$' | sort -V | tail -n 1)
|
||||||
echo "Latest tag excluding RC: $FILTERED_TAGS"
|
echo "Latest tag excluding RC: $FILTERED_TAGS"
|
||||||
echo "::set-output name=latest_tag::$FILTERED_TAGS"
|
echo "::set-output name=latest_tag::$FILTERED_TAGS"
|
||||||
|
|
Loading…
Add table
Reference in a new issue