diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e4286c8..044d208 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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