Skip to content

Commit e0c919c

Browse files
committed
fix urgent workflow release
1 parent 2744cee commit e0c919c

2 files changed

Lines changed: 12 additions & 21 deletions

File tree

.github/workflows/release_build_infisical_cli.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ name: Build and release CLI
33
on:
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"
Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
name: Build and release CLI (Urgent)
1+
name: Mark latest release as urgent
22

33
on:
44
workflow_dispatch:
55

66
permissions:
77
contents: write
8-
id-token: write
98

109
jobs:
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 -->"

0 commit comments

Comments
 (0)