-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
a7d8a7d
commit 4ec9af2
Showing
5 changed files
with
110 additions
and
38 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 |
---|---|---|
@@ -1,29 +1,29 @@ | ||
name: Merge | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
fast-forward: | ||
# Only run if the comment contains the /merge command. | ||
if: ${{ contains(github.event.comment.body, '/merge') | ||
&& github.event.issue.pull_request }} | ||
runs-on: ubuntu-latest | ||
fast-forward: | ||
# Only run if the comment contains the /merge command. | ||
if: ${{ contains(github.event.comment.body, '/merge') | ||
&& github.event.issue.pull_request }} | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
issues: write | ||
|
||
steps: | ||
- name: Fast forwarding | ||
uses: sequoia-pgp/fast-forward@v1 | ||
with: | ||
merge: true | ||
github_token: ${{ secrets.FAST_FORWARD_PAT }} | ||
# To reduce the workflow's verbosity, use 'on-error' | ||
# to only post a comment when an error occurs, or 'never' to | ||
# never post a comment. (In all cases the information is | ||
# still available in the step's summary.) | ||
comment: "on-error" | ||
steps: | ||
- uses: actions/create-github-app-token@v1 | ||
id: app-token | ||
with: | ||
app-id: ${{ vars.BUILD_APP_ID }} | ||
private-key: ${{ secrets.BUILD_PRIVATE_KEY }} | ||
- name: Fast forwarding | ||
uses: sequoia-pgp/fast-forward@v1 | ||
with: | ||
merge: true | ||
github_token: ${{ steps.app-token.outputs.token }} | ||
# To reduce the workflow's verbosity, use 'on-error' | ||
# to only post a comment when an error occurs, or 'never' to | ||
# never post a comment. (In all cases the information is | ||
# still available in the step's summary.) | ||
comment: 'on-error' |
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
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
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
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