diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 624e85916..9f2006272 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -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 }}