Skip to content

Commit

Permalink
fix: add new issues to project workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryun1 committed Nov 11, 2024
1 parent 6b3184f commit 892037f
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/add-issue-to-project.yml
Original file line number Diff line number Diff line change
@@ -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 }}
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 }}

0 comments on commit 892037f

Please sign in to comment.