Skip to content

Commit

Permalink
CI: Comment when done [wheel build]
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Sep 10, 2023
1 parent 4e24d5a commit a9f2b05
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,19 @@ jobs:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1

comment_on_pr:
if: >-
contains(needs.get_commit_message.outputs.message, '[wheel build]') ||
github.event_name == 'pull_request'
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
- name: Comment on PR
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
PR_COMMENT="Artifacts generated for this PR:"
PR_COMMENT+="\n\n- [Wheels](${{ github.server_url }}/${{ github.repository }}/actions/artifacts/)"
PR_COMMENT+="\n\nPlease download and test these builds to validate the PR."
gh pr comment "${{ github.event.pull_request.number }}" --body "$PR_COMMENT"

0 comments on commit a9f2b05

Please sign in to comment.