Skip to content

Commit

Permalink
cd ansible-release: include artifact URL in PR body (#377)
Browse files Browse the repository at this point in the history
* cd ansible-release: include artifact URL in PR body

This exposes the release artifact download URL in the PR body so we can
access it while reviewing the release PR.

* cd ansible-release: properly handle escape sequence

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
  • Loading branch information
gotmax23 and felixfontein committed Mar 27, 2024
1 parent db95db8 commit de505a1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ansible-release.yml
Expand Up @@ -77,6 +77,7 @@ jobs:

- name: Upload artifact
uses: actions/upload-artifact@v4
id: upload-artifact
with:
name: sdist-and-wheel
path: antsibull/build/ansible-*.*
Expand All @@ -93,12 +94,14 @@ jobs:
working-directory: antsibull/build/ansible-build-data
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >-
gh pr create
--base main
--head "publish-${ANSIBLE_VERSION}"
--title "Release Ansible ${ANSIBLE_VERSION}"
--body "${CI_COMMIT_MESSAGE}"
ARTIFACT_URL: ${{ steps.upload-artifact.outputs.artifact-url }}
run: |
body="$(echo -e "${CI_COMMIT_MESSAGE}\nRelease artifacts: <${ARTIFACT_URL}>")"
gh pr create \
--base main \
--head "publish-${ANSIBLE_VERSION}" \
--title "Release Ansible ${ANSIBLE_VERSION}" \
--body "${body}"
# publish job downloads the arifacts and publish it to PyPI

Expand Down

0 comments on commit de505a1

Please sign in to comment.