Add workflow to auto-add any GitHub Issue labeled 'bug' to an internal project board (#8510)
* Add workflow to auto-add any GitHub Issue labeled 'bug' to an internal project board * update how the env var is used * update version of dependency
This commit is contained in:
parent
cf16f3e1a8
commit
530f296522
|
@ -0,0 +1,23 @@
|
|||
name: sustain
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [labeled]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
PROJECT_COLUMN_ID: ${{secrets.PROJECT_COLUMN_ID}}
|
||||
steps:
|
||||
- name: Maybe move an issue to the project board
|
||||
uses: actions/github-script@0.8.0
|
||||
if: github.event.label.name == 'bug'
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
github.projects.createCard({
|
||||
column_id: process.env.PROJECT_COLUMN_ID,
|
||||
content_id: context.payload.issue.id,
|
||||
content_type: "Issue"
|
||||
})
|
Loading…
Reference in New Issue