Skip to content

Instantly share code, notes, and snippets.

@IanField90
Created June 14, 2022 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IanField90/068716743c197d9b298a929b8ba35a64 to your computer and use it in GitHub Desktop.
Save IanField90/068716743c197d9b298a929b8ba35a64 to your computer and use it in GitHub Desktop.
Protection for PRs
name: PR Protection
on:
pull_request:
branches:
- main
jobs:
check_source_is_develop:
runs-on: ubuntu-latest
steps:
- name: Verify source is develop
if: github.head_ref != 'develop'
run: echo PR targets master, source was not develop && exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment