Update actions/github-script action to v7 #6
Workflow file for this run
This file contains 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: Community PR notice | |
on: | |
workflow_dispatch: | |
# pull_request_target: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
welcome: | |
runs-on: ubuntu-latest | |
name: Welcome comment | |
if: github.event.pull_request.fork == null | |
steps: | |
- name: Add auto-generated commit warning | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `Test comment` | |
}) |