Merge pull request #25 from FoamyGuy/working_on_stuff_again
Some checks failed
Validate Build / validate-build (push) Has been cancelled

pass assets upload_url thru to the second job
This commit is contained in:
foamyguy 2025-06-24 09:36:37 -05:00 committed by GitHub
commit 205d655dc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -15,6 +15,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.check_release.outputs.release_created }}
assets_upload_url: ${{ steps.check_release.outputs.assets_upload_url }}
steps:
- name: Set up requested Python version
uses: actions/setup-python@v5
@ -72,4 +73,4 @@ jobs:
with:
asset_path: "dist/*"
github_token: ${{ secrets.GITHUB_TOKEN }}
upload_url: ${{ github.event.release.upload_url }}
upload_url: ${{ needs.release_check.outputs.assets_upload_url }}

View file

@ -176,13 +176,14 @@ if __name__ == '__main__':
tag_name=new_tag,
)
print(new_release)
#print(new_release)
github_output_path = os.environ.get('GITHUB_OUTPUT')
if github_output_path:
with open(github_output_path, 'a') as f:
f.write(f"release_created=true\n")
f.write(f"assets_upload_url={new_release['upload_url']}\n")
print(f"Successfully created release: {new_tag}")
print(f"Release URL: {new_release['html_url']}")
@ -192,4 +193,4 @@ if __name__ == '__main__':
if github_output_path:
with open(github_output_path, 'a') as f:
f.write(f"release_created=false\n")
f.write(f"assets_upload_url=None\n")