Skip to content

Commit 2882127

Browse files
committed
build(gha): rebase prs on push
1 parent 28092e6 commit 2882127

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/push.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,21 @@ jobs:
4646
env:
4747
GH_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
4848
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
50+
rebase-prs:
51+
needs: release
52+
if: always()
53+
runs-on: ubuntu-22.04
54+
steps:
55+
- uses: myparcelnl/actions/setup-git-credentials@v3
56+
id: credentials
57+
with:
58+
app-id: ${{ secrets.MYPARCEL_APP_ID }}
59+
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}
60+
61+
- uses: peter-evans/rebase@v2
62+
with:
63+
token: ${{ steps.credentials.outputs.token }}
64+
base: ${{ github.ref_name }}
65+
exclude-drafts: true
66+
exclude-labels: "dependencies"

0 commit comments

Comments
 (0)