Skip to content

Commit

Permalink
fix: release_id > id
Browse files Browse the repository at this point in the history
  • Loading branch information
skylar-simoncelli authored Feb 3, 2025
1 parent 495d47a commit 4ce295e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/actions/release/create-draft-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ runs:
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}

- name: Upload artifacts to release
if: ${{ steps.check_release.outputs.release_exists == 'true' || steps.create_release.outputs.release_id != '' }}
if: ${{ steps.check_release.outputs.release_exists == 'true' || steps.create_release.outputs.id != '' }}
run: |
# Extract the release ID
release_id="${{ steps.create_release.outputs.release_id }}"
release_id="${{ steps.create_release.outputs.id }}"
if [ -z "$release_id" ]; then
release_id="${{ steps.check_release.outputs.release_id }}"
fi
echo "Uploading artifacts to release ID $release_id..."
for artifact in "artifact-linux/${{ env.PARTNER_CHAINS_NODE_X86_64_LINUX }}" \
"artifact-macos-x86_64/${{ env.PARTNER_CHAINS_NODE_X86_64_APPLE_DARWIN }}" \
"artifact-macos-arm64/${{ env.PARTNER_CHAINS_NODE_AARCH64_APPLE_DARWIN }}"; do
Expand All @@ -95,3 +95,6 @@ runs:
"https://uploads.github.com/repos/${{ github.repository }}/releases/$release_id/assets?name=$(basename $artifact)"
done
shell: bash

done
shell: bash

0 comments on commit 4ce295e

Please sign in to comment.