name: Prevent prod to staging merges

on:
  pull_request:
    branches: staging

jobs:
  check-branch:
    runs-on: ubuntu-latest
    steps:
    - name: Fail if we are merging prod to staging
      run: |
        echo $GITHUB_REF | grep -v prod
name: Prevent prod to staging merges

on:
  pull_request:
    branches: staging

jobs:
  check-branch:
    runs-on: ubuntu-latest
    steps:
    - name: Fail if we are merging prod to staging
      run: |
        env
        echo $GITHUB_REF | grep -v prod
        cat $GITHUB_EVENT_PATH
Print out some env vars for debugging
ci: Print out some env vars for debugging

We couldn't tell that the branch to be merged was 'prod'
earlier with just $GITHUB_REF - that seems to refer
to the ref specifically for the PR
