Skip to content

Commit

Permalink
ci: add merged event
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbae0 committed Mar 23, 2024
1 parent f1f90b8 commit 5f0c8df
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,19 @@ jobs:
- uses: actions/checkout@v3
with:
persist-credentials: false

merge:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Merge publish to main
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git checkout main
git merge --no-ff --no-edit publish
git push origin main

0 comments on commit 5f0c8df

Please sign in to comment.