Skip to content

Commit

Permalink
pull in url from originating job
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Oct 28, 2024
1 parent 4d49995 commit dca2cd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
release:
name: Create Github Release
runs-on: ubuntu-latest
outputs:
url: ${{ steps.output_url.outputs.url }}
steps:
- name: Download Python Build Artifacts
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -60,9 +62,13 @@ jobs:
asset_name: relenv-${{ inputs.version }}-py3-none-any.whl
asset_content_type: application/zip

- name: Output url
id: output_url
run: echo "url=${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_OUTPUT

upload-artifacts:
name: Create Github Release
needs: [release]
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -151,7 +157,7 @@ jobs:
id: upload-python-build-assets
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ needs.release.outputs.url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_name: ${{ matrix.python }}-${{ matrix.arch }}-${{ matrix.platform }}.tar.xz
asset_path: release-artifacts/
asset_content_type: application/tar+xz
2 changes: 1 addition & 1 deletion relenv/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import time

# relenv package version
__version__ = "0.17.400002"
__version__ = "0.17.400003"

MODULE_DIR = pathlib.Path(__file__).resolve().parent

Expand Down

0 comments on commit dca2cd0

Please sign in to comment.