Skip to content

Commit

Permalink
conf: 핫픽스 머지 워크플로우 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Miensoap committed Nov 18, 2024
1 parent 29272cc commit 5758f1d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/hotfix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Bypass Branch Protection for Hotfix PRs

on:
pull_request:
branches:
- develop

jobs:
bypass-protection:
if: startsWith(github.event.pull_request.head.ref, 'hotfix/')
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Attempt Rebase and Merge Hotfix PR
run: |
gh pr merge ${{ github.event.pull_request.number }} --rebase --admin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5758f1d

Please sign in to comment.