From ffb58c11f76c87bf800116380d6e24400b2f2f4f Mon Sep 17 00:00:00 2001 From: Chris Pine Date: Thu, 25 Jan 2024 15:21:15 -0800 Subject: [PATCH] Update add-to-project.yaml (#15) Use shared GitHub workflow instead of duplicating it in each repo. --- .github/workflows/add-to-project.yaml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) 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