Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
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 }} |