Skip to content

Commit 70cac37

Browse files
author
CsB-Polymesh
committed
auth and fast-forward action
1 parent 9624dd3 commit 70cac37

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
- uses: PolymeshAssociation/polymesh-action-public@v1.1.1
26+
with:
27+
allowed-signers: ${{ vars.MIDDLEWARE_ALLOWED_SIGNERS }}
28+
github-token: ${{ secrets.GITHUB_TOKEN }}
29+
comment-mode: 'always'
30+
auth-required: 'true'
31+
required-key-type: 'ed25519-sk'

0 commit comments

Comments
 (0)