Skip to content

Commit

Permalink
Merge pull request #12 from okcashpro/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
oktoshi authored Dec 12, 2024
2 parents 790b15e + da81497 commit b120365
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/require-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check pull request source branch
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- edited
jobs:
check-branches:
runs-on: ubuntu-latest
steps:
- name: Check branches
run: |
if [ ${{ github.head_ref }} != "develop" ] && [ ${{ github.base_ref }} == "main" ]; then
echo "Merge requests to main branch are only allowed from dev branch."
exit 1
fi

0 comments on commit b120365

Please sign in to comment.