diff --git a/.gitea/workflows/tag.yml b/.gitea/workflows/tag.yml index 0ce25a8..76c2926 100644 --- a/.gitea/workflows/tag.yml +++ b/.gitea/workflows/tag.yml @@ -21,11 +21,23 @@ jobs: mv tea* tea chmod +x tea ./tea login add --url ${{ github.server_url }} --token ${{ github.token }} - export RELEASE_TICKET_ID=$(./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref }}' | awk '{print $1}') - echo ${RELEASE_TICKET_ID} + + - name: debug 1 + shell: bash + run: ./tea i ls --fields index,title --output simple + + - name: debug 2 + shell: bash + run: ./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref }}' + + - name: debug 3 + shell: bash + run: ./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref }}' | 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}') + ./tea comment ${RELEASE_TICKET_ID} "Start tag" ./tea issues close ${{ github.event.issue.number }}