Skip to content

feat: add Secondary key permissions management #52

feat: add Secondary key permissions management

feat: add Secondary key permissions management #52

Workflow file for this run

name: Auth and Fast-Forward
on:
pull_request:
types: [opened, reopened, synchronize]
issue_comment:
types: [created]
jobs:
auth-and-merge:
if: >
github.event_name == 'pull_request' ||
(github.event_name == 'issue_comment' &&
contains(github.event.comment.body, '/fast-forward') &&
github.event.issue.pull_request)
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# For PR events: checks out the PR merge commit
# For comment events: fetches PR head using the PR number
ref: ${{ github.event.pull_request.head.sha || format('refs/pull/{0}/head', github.event.issue.number) }}
- name: Polymesh Action - Auth and Fast-Forward
uses: PolymeshAssociation/polymesh-action-public@v1.1.4
with:
allowed-signers: ${{ vars.MIDDLEWARE_ALLOWED_SIGNERS }}
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-mode: 'always'
auth-required: 'true'
required-key-type: 'ed25519-sk'