Created
March 1, 2022 17:03
-
-
Save briantist/42f09c9bf51bbdc34949902db9f8061c to your computer and use it in GitHub Desktop.
a sample workflow for notifying on merged PRs of interest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Notify on docs of interest | |
on: | |
pull_request_target: | |
branches: [devel] | |
types: [closed] | |
paths: | |
- path1 | |
- docs/**/some*pattern.rst | |
jobs: | |
notify: | |
name: Notify persons of interest | |
if: github.event.pull_request_target.merged | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- name: Notify | |
uses: mshick/add-pr-comment@v1 | |
with: | |
message: | | |
@githubuser doc stuff here! | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
repo-token-user-login: 'github-actions[bot]' # The user.login for temporary GitHub tokens | |
allow-repeats: false # This is the default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment