forked from holochain/holochain
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 1.26 KB
/
autorebase.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Operates on open PRs and automatically rebases the PR branch onto the target branch.
# Like autoupdate.yml, but with rebasing instead of merging.
# Is triggered on a PR if labeled `autorebase:opt-in`.
name: autorebase
on:
# Run on every push on develop
push:
branches:
- "develop"
# Run when pull requests get labeled
pull_request:
types: [labeled, opened, ready_for_review, reopened]
branches:
- "develop"
jobs:
auto-rebase:
name: AutoRebase
runs-on: ubuntu-latest
steps:
- uses: Label305/[email protected]
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.HRA_GITHUB_TOKEN }}