From c7e8dbf8325374c7c29d8e732947a86838c28613 Mon Sep 17 00:00:00 2001 From: Oliver Lippert Date: Fri, 2 Feb 2024 00:34:56 +0100 Subject: [PATCH] fix: use github.ref_name --- .gitea/workflows/tag.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/tag.yml b/.gitea/workflows/tag.yml index 35c7f3a..dde7651 100644 --- a/.gitea/workflows/tag.yml +++ b/.gitea/workflows/tag.yml @@ -24,7 +24,7 @@ jobs: - name: debug 1 shell: bash - run: echo 'Release ${{ github.ref }}' + run: echo 'Release ${{ github.ref_name }}' - name: debug 2 shell: bash @@ -32,16 +32,16 @@ jobs: - name: debug 3 shell: bash - run: ./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref }}' + run: ./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref_name }}' - name: debug 4 shell: bash - run: ./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref }}' | awk '{print $1}' + run: ./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref_name }}' | awk '{print $1}' - name: comment tag start shell: bash run: | - export RELEASE_TICKET_ID=$(./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref }}' | awk '{print $1}') + export RELEASE_TICKET_ID=$(./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref_name }}' | awk '{print $1}') ./tea comment ${RELEASE_TICKET_ID} "Start tag" ./tea issues close ${{ github.event.issue.number }}