Another approach to fix auto rebase (#1513)

This commit is contained in:
ligi 2022-08-28 18:02:30 +02:00 committed by GitHub
parent 4430d311d9
commit 079f5a8794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,12 +13,14 @@ jobs:
contains(github.event.comment.body, '/autosquash') contains(github.event.comment.body, '/autosquash')
) )
steps: steps:
- name: Checkout the latest code - name: Checkout the latest code
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
token: ${{ secrets.PAT_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- name: Automatic Rebase - name: Automatic Rebase
uses: cirrus-actions/rebase@1.5 uses: cirrus-actions/rebase@1.7
env: with:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} autosquash: ${{ contains(github.event.comment.body, '/autosquash') || contains(github.event.comment.body, '/rebase-autosquash') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}