Skip to content

Commit e2a9b7c

Browse files
authored
ci: show the endpoint used to publish a release (#13143)
1 parent 455f510 commit e2a9b7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,11 @@ jobs:
321321
- name: Publish release
322322
if: github.event.inputs.publish == 'true' || github.event_name == 'push'
323323
env:
324-
release_id: ${{ fromJSON(steps.after.outputs.release).id }}
324+
endpoint: ${{ format('/repos/{0}/releases/{1}', github.repository, fromJSON(steps.after.outputs.release).id) }}
325325
make_latest: ${{ matrix.project == 'node' && fromJSON(steps.project.outputs.config).latest || false }}
326326
GITHUB_TOKEN: ${{ secrets.TAG_CREATE_GITHUB_TOKEN || github.token }}
327327
run: |
328-
gh api -X PATCH /repos/$GITHUB_REPOSITORY/releases/$release_id \
328+
gh api -X PATCH "$endpoint" \
329329
--field draft=false \
330330
--raw-field make_latest="$make_latest" |
331331
jq -r '.'

0 commit comments

Comments
 (0)