Skip to content

Commit

Permalink
GitHub workflow: Add CreateCardForIssueFromLabel from dev (#7637)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-mikula-sonarsource authored Jul 21, 2023
1 parent 287465d commit 28ab634
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/LabelIssue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Issue Labeled

on:
issues:
types: ["labeled"]

jobs:
CreateCardForIssueFromLabel_job:
name: Create 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@Pavel/Dev # FIXME: v1
with:
github-token: ${{ fromJSON(steps.secrets.outputs.vault).kanban_token }}
project-number: 10

0 comments on commit 28ab634

Please sign in to comment.