pass assets upload_url thru to the second job
This commit is contained in:
parent
675143d56d
commit
6d1665b6ee
2 changed files with 5 additions and 3 deletions
3
.github/workflows/daily_release_check.yml
vendored
3
.github/workflows/daily_release_check.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue