Skip to content

Commit

Permalink
Add workflow to auto-add issues to boards (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 authored Jan 17, 2023
1 parent 803906f commit 1e297a3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/project_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Add issues to Development Project Board

on:
issues:
types:
- opened

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- name: GitHub App token
id: generate_token
uses: tibdex/github-app-token@v1.7.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PEM }}

- name: Add to Developer Board
env:
TOKEN: ${{ steps.generate_token.outputs.token }}
uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/NeurodataWithoutBorders/projects/7
github-token: ${{ env.TOKEN }}

- name: Add to Community Board
env:
TOKEN: ${{ steps.generate_token.outputs.token }}
uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/NeurodataWithoutBorders/projects/8
github-token: ${{ env.TOKEN }}

0 comments on commit 1e297a3

Please sign in to comment.