From 4957a4c2493af646e1506aba9226875dbf947d0f Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 15 Jan 2021 13:48:04 +0100 Subject: [PATCH] Create autorebase.yml --- .github/workflows/autorebase.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/autorebase.yml diff --git a/.github/workflows/autorebase.yml b/.github/workflows/autorebase.yml new file mode 100644 index 0000000000..b16c9efc19 --- /dev/null +++ b/.github/workflows/autorebase.yml @@ -0,0 +1,26 @@ +on: + # Run on every push on every branch + push: + branches-ignore: + # Ignore branches automatically created by github-rebase + - rebase-pull-request** + - cherry-pick-rebase-pull-request** + # Run when pull requests get labeled + pull_request: + types: [labeled] + +jobs: + auto-rebase: + name: AutoRebase + runs-on: ubuntu-latest + steps: + - uses: Label305/AutoRebase@v0.1 + with: + # We can't use the built-in secrets.GITHUB_TOKEN yet because of this limitation: + # https://github.community/t5/GitHub-Actions/Triggering-a-new-workflow-from-another-workflow/td-p/31676 + # In the meantime, use a token granting write access on the repo: + # - a GitHub App token + # See https://github.com/marketplace/actions/github-app-token. + # - a personal access token + # See https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line. + github_token: ${{ secrets.AUTOREBASE_TOKEN }}