Skip to content

Commit

Permalink
Update rfc-action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp authored Oct 18, 2023
1 parent 9fc0f69 commit b47ef6a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/rfc-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ on:
issue_comment:
types: [created]

permissions:
pull-requests: write
contents: write

jobs:
rfc-action:
name: Handle an RFC-relate command in a RFC proposal PR
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/rfc') }}
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app_id: ${{ secrets.RFC_BOT_APP_ID }}
private_key: ${{ secrets.RFC_BOT_PRIVATE_KEY }}
- uses: paritytech/rfc-action@main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}

0 comments on commit b47ef6a

Please sign in to comment.