chore: synced file(s) with ecmwf-actions/reusable-workflows #99
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: PR Workflow Check | |
on: | |
pull_request_target: | |
paths: | |
- ".github/**" | |
jobs: | |
check: | |
if: ${{ github.event.pull_request.head.repo.fork }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Comment PR | |
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: `> [!CAUTION] | |
> This pull request contains changes to GitHub workflows! | |
> Proceed with caution and if not sure, contact your GitHub admin.` | |
}) | |
- run: | | |
::error::PR originating from a fork changes a Github workflow! | |
exit 1 |