diff --git a/.github/workflows/add-to-project.yaml b/.github/workflows/add-to-project.yaml index eadcb94..4ca285a 100644 --- a/.github/workflows/add-to-project.yaml +++ b/.github/workflows/add-to-project.yaml @@ -10,19 +10,12 @@ on: types: - opened - reopened + issue_comment: + types: + - created jobs: - add-to-project: - name: Add issue to project - runs-on: ubuntu-latest - steps: - - name: Get GitHub app token - uses: actions/create-github-app-token@v1 - id: app_token - with: - app-id: ${{ secrets.CONNECT_EXPORT_APP_ID }} - private-key: ${{ secrets.CONNECT_EXPORT_APP_KEY }} - - uses: actions/add-to-project@v0.5.0 - with: - project-url: https://github.com/orgs/connectrpc/projects/1 - github-token: ${{ steps.app_token.outputs.token }} + call-workflow-add-to-project: + name: Call workflow to add issue to project + uses: connectrpc/base-workflows/.github/workflows/add-to-project.yaml@main + secrets: inherit