rework name in CI #5
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: Check Workflow Files Changes | |
on: | |
pull_request_target: | |
paths: | |
- .github/workflows/* | |
jobs: | |
check-changes: | |
name: Check changes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check changes | |
env: | |
ENVIRONMENT: ${{ github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }} | |
run: | | |
if [[ "$ENVIRONMENT" == "external" ]]; then | |
echo "Merge requests from external repositories cannot contain changes to workflow files." | |
exit 1 | |
fi |