Make Review-Bot fetch the latest information of a PR instead of using the action payload #68
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
name: GitHub Issue Sync | |
on: | |
issues: | |
types: | |
- opened | |
- labeled | |
workflow_dispatch: | |
inputs: | |
excludeClosed: | |
description: 'Exclude closed issues in the sync.' | |
type: boolean | |
default: true | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate token | |
id: generate_token | |
uses: actions/create-github-app-token@v1.9.3 | |
with: | |
app-id: ${{ secrets.PROJECT_APP_ID }} | |
private-key: ${{ secrets.PROJECT_APP_KEY }} | |
- name: Sync issues | |
uses: paritytech/github-issue-sync@v0.3.2 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PROJECT_TOKEN: ${{ steps.generate_token.outputs.token }} | |
project: 16 | |
project_field: Tool | |
project_value: review-bot |