From ea4a9c43a368819c170914826ec255297c622f23 Mon Sep 17 00:00:00 2001 From: userdocs <16525024+userdocs@users.noreply.github.com> Date: Sat, 4 Mar 2023 01:04:19 +0000 Subject: [PATCH] Update zlib-ng-crossbuild.yml --- .github/workflows/zlib-ng-crossbuild.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/zlib-ng-crossbuild.yml b/.github/workflows/zlib-ng-crossbuild.yml index 61cbf1e..8d367ab 100644 --- a/.github/workflows/zlib-ng-crossbuild.yml +++ b/.github/workflows/zlib-ng-crossbuild.yml @@ -230,25 +230,21 @@ jobs: - name: process v1 id: draft_id_1 if: matrix.pretty_name == 'v1' - run: echo "draft_id_1=${{ env.zlib_ng_version }}" >> $GITHUB_OUTPUT + run: echo "draft_id_1=${{ steps.release_id.outputs.id }}" >> $GITHUB_OUTPUT - name: process v2 id: draft_id_2 if: matrix.pretty_name == 'v2' - run: echo "draft_id_2=${{ env.zlib_ng_version }}" >> $GITHUB_OUTPUT + run: echo "draft_id_2=${{ steps.release_id.outputs.id }}" >> $GITHUB_OUTPUT publish_draft: name: Publish Drafts runs-on: ubuntu-22.04 needs: [build] - env: - GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" steps: - - uses: actions/checkout@v3 - - name: Update draft to release run: | drafts=("${{ needs.build.outputs.draft_id_1 }}" "${{ needs.build.outputs.draft_id_2 }}") - for d in "${drafts[@]}"; do - gh release edit "${d}" --draft=false + for d in "${drafts[@]}"; do + gh api --silent /repos/${{ github.repository }}/releases/${d} -F 'draft=false' done \ No newline at end of file