From c59852af9b8330f52c735801590efd714a0d2de6 Mon Sep 17 00:00:00 2001 From: Daniel Weber Date: Fri, 19 Jan 2024 10:04:22 +0100 Subject: [PATCH] Fix in pack.yml: Take outputs from previous job. --- .github/workflows/pack.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index f1bc75d272..3bb429a4e1 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -49,6 +49,10 @@ jobs: draft-release: needs: [ pack ] runs-on: ubuntu-latest + + outputs: + releaseUploadUrl: ${{ steps.create_release.outputs.upload_url }} + releaseUploadId: ${{ steps.create_release.outputs.id }} steps: @@ -75,13 +79,13 @@ jobs: - uses: shogo82148/actions-upload-release-asset@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} + upload_url: ${{ needs.draft-release.outputs.releaseUploadUrl }} asset_path: '**/${{ github.event.repository.name }}.*.nupkg' github_token: ${{ secrets.CREATE_RELEASE_PAT }} - uses: eregon/publish-release@v1 with: - release_id: ${{ steps.create_release.outputs.id }} + release_id: ${{ needs.draft-release.outputs.releaseUploadId }} env: GITHUB_TOKEN: ${{ secrets.CREATE_RELEASE_PAT }}