This commit is contained in:
Harsh Shandilya 2023-01-12 16:35:41 +05:30
parent 1a25a724d1
commit d8559f9fab
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,12 @@ jobs:
check-pr-base:
runs-on: ubuntu-latest
steps:
- name: .
shell: bash
env:
BASE_REF: ${{ github.base_ref }}
HEAD_REF: ${{ github.head_ref }}
run: echo $BASE_REF $HEAD_REF
- name: Validate PR head and base branches
if: "${{ github.base_ref == 'refs/heads/main' && github.head_ref != 'refs/heads/staging' }}"
run: exit 1