File tree Expand file tree Collapse file tree 2 files changed +36
-36
lines changed Expand file tree Collapse file tree 2 files changed +36
-36
lines changed Original file line number Diff line number Diff line change 1- name : Enforce PRs Only from Develop
1+ # name: Enforce PRs Only from Develop
22
3- on :
4- pull_request :
5- branches : [staging]
6- types : [opened, synchronize, reopened]
3+ # on:
4+ # pull_request:
5+ # branches: [staging]
6+ # types: [opened, synchronize, reopened]
77
8- jobs :
9- check-develop-only :
10- runs-on : ubuntu-latest
11- steps :
12- - name : Fail if source is not develop
13- run : |
14- echo "Source branch: ${{ github.head_ref }}"
15- if [[ "${{ github.head_ref }}" != "develop" ]]; then
16- echo "❌ Only PRs from 'develop' branch are allowed to merge into 'staging'."
17- exit 1
18- else
19- echo "✅ PR is from develop branch. Proceeding."
20- fi
8+ # jobs:
9+ # check-develop-only:
10+ # runs-on: ubuntu-latest
11+ # steps:
12+ # - name: Fail if source is not develop
13+ # run: |
14+ # echo "Source branch: ${{ github.head_ref }}"
15+ # if [[ "${{ github.head_ref }}" != "develop" ]]; then
16+ # echo "❌ Only PRs from 'develop' branch are allowed to merge into 'staging'."
17+ # exit 1
18+ # else
19+ # echo "✅ PR is from develop branch. Proceeding."
20+ # fi
Original file line number Diff line number Diff line change 1- name : Enforce PRs Only from Staging
1+ # name: Enforce PRs Only from Staging
22
3- on :
4- pull_request :
5- branches : [main]
6- types : [opened, synchronize, reopened]
3+ # on:
4+ # pull_request:
5+ # branches: [main]
6+ # types: [opened, synchronize, reopened]
77
8- jobs :
9- check-branch :
10- runs-on : ubuntu-latest
11- steps :
12- - name : Fail if source is not staging
13- run : |
14- echo "Source branch: ${{ github.head_ref }}"
15- if [[ "${{ github.head_ref }}" != "staging" ]]; then
16- echo "❌ Only PRs from 'staging' are allowed to merge into 'main'."
17- exit 1
18- else
19- echo "✅ PR is from staging branch. Proceeding."
20- fi
8+ # jobs:
9+ # check-branch:
10+ # runs-on: ubuntu-latest
11+ # steps:
12+ # - name: Fail if source is not staging
13+ # run: |
14+ # echo "Source branch: ${{ github.head_ref }}"
15+ # if [[ "${{ github.head_ref }}" != "staging" ]]; then
16+ # echo "❌ Only PRs from 'staging' are allowed to merge into 'main'."
17+ # exit 1
18+ # else
19+ # echo "✅ PR is from staging branch. Proceeding."
20+ # fi
You can’t perform that action at this time.
0 commit comments