Skip to content

Commit

Permalink
build(gha): rebase prs on push
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Jun 1, 2023
1 parent 28092e6 commit 2882127
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,21 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

rebase-prs:
needs: release
if: always()
runs-on: ubuntu-22.04
steps:
- uses: myparcelnl/actions/setup-git-credentials@v3
id: credentials
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}

- uses: peter-evans/rebase@v2
with:
token: ${{ steps.credentials.outputs.token }}
base: ${{ github.ref_name }}
exclude-drafts: true
exclude-labels: "dependencies"

0 comments on commit 2882127

Please sign in to comment.