From 265f61866614e4c8bda6d116042efcc38c3f2437 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Fri, 20 Oct 2023 19:21:53 +0200 Subject: [PATCH] Distinguish between latest and latest-lts --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a02b366..1e60529 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,7 +39,7 @@ jobs: build: needs: test runs-on: ubuntu-latest - if: github.event_name == 'push' + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') steps: - uses: actions/checkout@master @@ -47,10 +47,10 @@ jobs: - name: Get version tag id: get_tag run: | - if [ ${{ startsWith(github.ref, 'refs/tags/') }} = true ]; then - echo "tag=latest,${GITHUB_REF:10}" >>$GITHUB_OUTPUT + if [ ${{ endsWith(github.ref, '-lts') }} = true ]; then + echo "tag=latest-lts,${GITHUB_REF:10}" >>$GITHUB_OUTPUT else - echo "tag=latest" >>$GITHUB_OUTPUT + echo "tag=latest,${GITHUB_REF:10}" >>$GITHUB_OUTPUT fi - name: Publish to Registry