Skip to content

Commit 0e830ca

Browse files
author
CsB-Polymesh
committed
auth and fast-forward action
1 parent 0d37f6d commit 0e830ca

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Auth and Fast-Forward
2+
on:
3+
pull_request:
4+
types: [opened, reopened, synchronize]
5+
issue_comment:
6+
types: [created]
7+
8+
jobs:
9+
auth-and-merge:
10+
if: >
11+
github.event_name == 'pull_request' ||
12+
(github.event_name == 'issue_comment' &&
13+
contains(github.event.comment.body, '/fast-forward') &&
14+
github.event.issue.pull_request)
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
issues: write
20+
steps:
21+
- uses: polymesh/ga-auth-validation@v1
22+
with:
23+
allowed-signers: ${{ vars.MIDDLEWARE_ALLOWED_SIGNERS }}
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
comment-mode: 'always'
26+
auth-required: 'true'

0 commit comments

Comments
 (0)