feat: read out release issue id
This commit is contained in:
parent
4789b86cca
commit
16176d670b
2 changed files with 15 additions and 20 deletions
|
@ -55,14 +55,3 @@ jobs:
|
|||
./tea issues edit --title "Release $(cat version.txt)" ${{ github.event.issue.number }}
|
||||
./tea comment ${{ github.event.issue.number }} "Finished creating release"
|
||||
./tea issues close ${{ github.event.issue.number }}
|
||||
|
||||
- name: save release-issue
|
||||
shell: bash
|
||||
run: echo ${{ github.event.issue.number }} > release-issue
|
||||
|
||||
- name: cache release-issue
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
release-issue
|
||||
key: release-issue
|
||||
|
|
|
@ -11,13 +11,19 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
|
||||
- name: cache release-issue
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
release-issue
|
||||
key: release-issue
|
||||
|
||||
- name: show release-issue
|
||||
- name: setup tea cli
|
||||
shell: bash
|
||||
run: cat release-issue
|
||||
env:
|
||||
TEA_VERSION: 0.9.2
|
||||
run: |
|
||||
wget https://dl.gitea.com/tea/${TEA_VERSION}/tea-${TEA_VERSION}-linux-amd64
|
||||
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 test | awk '{print $1}')
|
||||
echo ${RELEASE_TICKET_ID}
|
||||
|
||||
- name: comment tag start
|
||||
shell: bash
|
||||
run: |
|
||||
./tea comment ${RELEASE_TICKET_ID} "Start tag"
|
||||
|
|
Loading…
Add table
Reference in a new issue