Skip to content

Commit 157662d

Browse files
authored
Update and rename main.yml to check_pull_request.yml
1 parent 41d403a commit 157662d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/main.yml renamed to .github/workflows/check_pull_request.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ name: Check PR source branch
22

33
on:
44
pull_request:
5-
branches:
6-
- main
75

86
jobs:
97
check-branch:
108
runs-on: ubuntu-latest
119
steps:
1210
- name: Verify PR source
11+
if: github.base_ref == 'main'
1312
run: |
1413
if [ "${{ github.head_ref }}" != "develop" ]; then
1514
echo "PRs to main must come from develop"

0 commit comments

Comments
 (0)