fix: write release ticket id to tmp file

This commit is contained in:
Oliver Lippert 2024-02-02 00:43:29 +01:00
parent b166837cb0
commit 9758968361
Signed by: oliver
GPG key ID: 4AE99C459BC7D2B3

View file

@ -22,10 +22,10 @@ jobs:
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_name }}' | awk '{print $1}')
./tea i ls --fields index,title --output simple | grep 'Release ${{ github.ref_name }}' | awk '{print $1}' > release-ticket-id
- name: comment tag start
shell: bash
run: |
./tea comment ${RELEASE_TICKET_ID} "Start tag"
./tea issues close ${RELEASE_TICKET_ID}
./tea comment $(cat release-ticket-id) "Start tag"
./tea issues close $(cat release-ticket-id)