File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,12 +3,6 @@ name: Build and release CLI
33on :
44 workflow_dispatch :
55
6- workflow_call :
7- inputs :
8- is_urgent :
9- type : boolean
10- default : false
11-
126 push :
137 # run only against tags
148 tags :
@@ -129,14 +123,6 @@ jobs:
129123 FURY_TOKEN : ${{ secrets.FURYPUSHTOKEN }}
130124 AUR_KEY : ${{ secrets.AUR_KEY }}
131125 GORELEASER_KEY : ${{ secrets.GORELEASER_KEY }}
132- - name : Mark release as urgent
133- if : ${{ inputs.is_urgent == true }}
134- env :
135- GH_TOKEN : ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
136- run : |
137- CURRENT_BODY=$(gh release view "${{ github.ref_name }}" --json body -q .body)
138- gh release edit "${{ github.ref_name }}" --notes "${CURRENT_BODY}
139- <!-- #urgent -->"
140126 - uses : actions/setup-python@v4
141127 with :
142128 python-version : " 3.12"
Original file line number Diff line number Diff line change 1- name : Build and release CLI (Urgent)
1+ name : Mark latest release as urgent
22
33on :
44 workflow_dispatch :
55
66permissions :
77 contents : write
8- id-token : write
98
109jobs :
11- release :
12- uses : ./.github/workflows/release_build_infisical_cli.yml
13- with :
14- is_urgent : true
15- secrets : inherit
10+ mark-urgent :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Mark latest release as urgent
14+ env :
15+ GH_TOKEN : ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
16+ run : |
17+ LATEST_TAG=$(gh api repos/${{ github.repository }}/releases/latest --jq '.tag_name')
18+ CURRENT_BODY=$(gh api repos/${{ github.repository }}/releases/latest --jq '.body')
19+ gh release edit "$LATEST_TAG" --repo "${{ github.repository }}" --notes "${CURRENT_BODY}
20+ <!-- #urgent -->"
You can’t perform that action at this time.
0 commit comments