-
Notifications
You must be signed in to change notification settings - Fork 964
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
128272a
commit 20d0a8f
Showing
4 changed files
with
44 additions
and
6 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Origin: https://github.com/marketplace/actions/combine-prs | ||
|
||
name: 'Combine PRs' | ||
|
||
# Controls when the action will run - in this case triggered manually | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ignoreLabel: | ||
description: 'Exclude PRs with this label' | ||
required: true | ||
default: 'blocked' | ||
|
||
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
checks: read | ||
actions: write | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "combine-prs" | ||
combine-prs: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Use GitHub App Token | ||
uses: wow-actions/[email protected] | ||
id: generate_token | ||
with: | ||
app_id: ${{ secrets.COMBINE_PRS_APP_ID }} | ||
private_key: ${{ secrets.COMBINE_PRS_PRIVATE_KEY }} | ||
fallback: ${{ secrets.GITHUB_TOKEN }} # fall back to the default token if the app token is | ||
|
||
- name: combine-prs | ||
id: combine-prs | ||
uses: github/[email protected] | ||
with: | ||
github_token: ${{ steps.generate_token.outputs.BOT_TOKEN }} | ||
ignore_label: ${{ github.event.inputs.ignoreLabel || 'blocked' }} |
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