From 65680ff598467742beaec913732f87f3456a9e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bouget?= Date: Thu, 14 Nov 2024 18:29:27 +0100 Subject: [PATCH] Update after signature script --- .github/workflows/after-signature.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/after-signature.yml b/.github/workflows/after-signature.yml index 0e861e6..6c97ec4 100644 --- a/.github/workflows/after-signature.yml +++ b/.github/workflows/after-signature.yml @@ -35,6 +35,7 @@ jobs: echo "::set-output name=draft_release_id::$($draft_release.id)" echo "::set-output name=draft_tag_name::$($draft_release.name)" + echo "::set-output name=draft_tag::$($draft_release.tag_name)" - name: Download Release Assets uses: robinraju/release-downloader@v1.11 @@ -89,7 +90,7 @@ jobs: "sha512: ${{ steps.compute_hash.outputs.sha512 }}" } elseif ($_ -match '^\s*sha512:\s.*$') { " sha512: ${{ steps.compute_hash.outputs.sha512 }}" - } elseif ($_ -notmatch '^size:\s.*$') { + } elseif ($_ -notmatch '^\s*size:\s.*$') { $_ } } | Set-Content -Path latest.yml @@ -105,7 +106,7 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: latest.yml - tag: ${{steps.find_draft.outputs.draft_tag_name}} + tag: ${{steps.find_draft.outputs.draft_tag}} draft: true overwrite: true