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 6c5d9f6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,20 @@ 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 PR
uses: thollander/actions-comment-pull-request@v1
with:
message: |
Artifacts generated for this PR:
- [Wheels](${{ github.server_url }}/${{ github.repository }}/actions/artifacts/)
Please download and test these to validate the PR.
comment_includes: "Artifacts generated for this PR"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6c5d9f6

Please sign in to comment.