Skip to content

chore: try this

chore: try this #49

name: Jira Issue Label Added
# on:
# issues:
# types:
# - labeled
on:
pull_request:
types:
- labeled
env:
TEAM_NAME: ${{ contains(github.event.pull_request.labels.*.name, 'team/bear-claws') && 'Bear Claws' || contains(github.event.pull_request.labels.*.name, 'team/honey-hackers') && 'Honey Hackers'}}
jobs:
echo-team-name:
runs-on: ubuntu-latest
steps:
- name: team-name
run: echo "$TEAM_NAME ${{ toJSON(github.event.pull_request.labels.*.name) }}"
call-workflow:
uses: stoplightio/.github/.github/workflows/jira-issue-label-added.yaml@chore/add-jira-issue-workflow-2

Check failure on line 23 in .github/workflows/jira-issue-label-added.yaml

View workflow run for this annotation

GitHub Actions / Jira Issue Label Added

Invalid workflow file

The workflow is not valid. In .github/workflows/jira-issue-label-added.yaml (Line: 23, Col: 11): Error from called workflow stoplightio/.github/.github/workflows/jira-issue-label-added.yaml@chore/add-jira-issue-workflow-2 (Line: 33, Col: 11): Unexpected symbol: '='. Located at position 20 within expression: inputs.team-name !== ''
with:
team-name: ${{ contains(github.event.pull_request.labels.*.name, 'team/bear-claws') && 'Bear Claws' || contains(github.event.pull_request.labels.*.name, 'team/honey-hackers') && 'Honey Hackers'}}
secrets: inherit