From 6c91378d96efde855164b7bad684c56e48a89e6d Mon Sep 17 00:00:00 2001 From: Jake Hemstad Date: Tue, 23 Aug 2022 14:46:48 -0500 Subject: [PATCH] Add workflow to add issues/PRs to Project. --- .github/workflows/add_to_project.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/add_to_project.yml diff --git a/.github/workflows/add_to_project.yml b/.github/workflows/add_to_project.yml new file mode 100644 index 000000000..f623fb577 --- /dev/null +++ b/.github/workflows/add_to_project.yml @@ -0,0 +1,29 @@ +name: Add new issue/PR to project + +on: + issues: + types: + - opened + + pull_request: + types: + - opened + +jobs: + add-to-project: + name: Add issue or PR to project + runs-on: ubuntu-latest + steps: + - name: Generate token + id: generate_token + uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0 + with: + app_id: ${{ secrets.CCCL_AUTH_APP_ID }} + private_key: ${{ secrets.CCCL_AUTH_APP_PEM }} + - name: Add to Project + env: + TOKEN: ${{ steps.generate_token.outputs.token }} + uses: actions/add-to-project@v0.3.0 + with: + project-url: https://github.com/orgs/NVIDIA/projects/6 + github-token: ${{ env.TOKEN }}