Skip to content

Commit

Permalink
chore: block deploy requests from non-develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Nov 15, 2024
1 parent e1f3fb4 commit 2dad0bf
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check Deploy

on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- edited
branches:
- main

jobs:
check:
if: github.head_ref != 'develop'
runs-on: ubuntu-latest
steps:
- run: |
echo "Pull requests to main branch are only allowed from develop branch."
exit 1

0 comments on commit 2dad0bf

Please sign in to comment.