feat: Local validation #557
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: Limit PRs on local repo only for E2E tests | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
limit_main_pr: | |
runs-on: ubuntu-latest | |
steps: | |
# 1) Check for all incoming changes to files under `recipes` directory | |
- name: Ensure no fork repo | |
run: | | |
SOURCE_NAME=$(echo ${{ github.event.pull_request.head.repo.full_name }}) | |
REMOTE_NAME=$(echo ${{ github.event.pull_request.base.repo.full_name }}) | |
if [ $SOURCE_NAME != $REMOTE_NAME ]; then | |
echo "PR should be created from a branch on the source repo, not from a fork, so the E2E tests can run. If you need access please reach out to the #help-virtuoso channel." | |
exit 1 | |
fi |