-
Notifications
You must be signed in to change notification settings - Fork 227
41 lines (38 loc) · 1.73 KB
/
LabelIssue.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Issue Labeled
on:
issues:
types: ["labeled"]
jobs:
CreateCard_Backlog_job:
name: Create Backlog card from label
runs-on: ubuntu-latest
permissions:
id-token: write
# Single quotes must be used here https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#literals
# Only limited global functions are available in this context https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#functions
if: |
github.event.issue.state == 'Open'
&& startsWith(github.event.label.name, 'Type:')
steps:
- id: secrets
uses: SonarSource/vault-action-wrapper@2.5.0-4
with:
secrets: |
development/github/token/{REPO_OWNER_NAME_DASH}-kanban token | kanban_token;
- uses: sonarsource/gh-action-lt-backlog/CreateCardForIssueFromLabel@v1
with:
github-token: ${{ fromJSON(steps.secrets.outputs.vault).kanban_token }}
project-number: 10
CreateCard_Kanban_job:
name: Create Kanban card for labeled issue
runs-on: ubuntu-latest
# Single quotes must be used here https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#literals
# Only limited global functions are available in this context https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#functions
if: |
github.event.issue.state != 'closed'
&& startsWith(github.event.label.name, 'Sprint:')
steps:
- uses: sonarsource/gh-action-lt-backlog/CreateCardForIssue@v1
with:
github-token: ${{secrets.GITHUB_TOKEN}}
column-id: 4971951