Last active
March 10, 2024 11:19
-
-
Save nwtgck/a9b291f6869db42ecc3d9e30d0a0494c to your computer and use it in GitHub Desktop.
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: "Comment run" | |
| on: | |
| issue_comment: | |
| types: [created, edited] | |
| jobs: | |
| comment-run: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # 0 indicates all history | |
| fetch-depth: 0 | |
| - uses: nwtgck/actions-comment-run@v3 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| allowed-associations: '["OWNER"]' |
Author
Thanks!
Adding if: contains(github.event.comment.body, '@github-actions run') reduces the computation of GitHub Actions. I don't update the yml for keeping yaml short, but very useful.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add following under the
comment-runjob to skip it when not effective: