From 892037f46ee29fbc35cd0d217faf9e299fe5d2ae Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Fri, 8 Nov 2024 17:27:57 +0000 Subject: [PATCH] fix: add new issues to project workflow --- .github/workflows/add-issue-to-project.yml | 31 +++++++++++----------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/add-issue-to-project.yml b/.github/workflows/add-issue-to-project.yml index 0e27148b6..6a86657c0 100644 --- a/.github/workflows/add-issue-to-project.yml +++ b/.github/workflows/add-issue-to-project.yml @@ -1,25 +1,24 @@ -name: Add Issue to Projects +name: Add all issues created to projects on: issues: types: [opened] jobs: - add-to-projects: + add-to-govtool-all-project: + name: Add issue to GovTool all project runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v3 + - uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/users/IntersectMBO/projects/30 + github-token: ${{ secrets.ADD_ISSUE_TO_PROJECT_PAT }} - - name: Install GitHub CLI - run: sudo apt-get install gh - - - name: Add issue to GovTool Project - run: gh project item-add IntersectMBO/30 --content-type Issue --content-id ${{ github.event.issue.node_id }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Add issue to Community Backlog Project - run: gh project item-add IntersectMBO/34 --content-type Issue --content-id ${{ github.event.issue.node_id }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + add-to-community-backlog-project: + name: Add issue to governance tools community backlog project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/users/IntersectMBO/projects/34 + github-token: ${{ secrets.ADD_ISSUE_TO_PROJECT_PAT }} \ No newline at end of file