Skip to content

Commit 0596fdf

Browse files
committed
fix: workflow manual trigger now includes branch name om run-name
1 parent 617f8d2 commit 0596fdf

File tree

1 file changed

+4
-4
lines changed
  • assets/inject/semver-workflow/.github/workflows

1 file changed

+4
-4
lines changed

assets/inject/semver-workflow/.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: CI & Release
44
# Workflow name based on selected inputs. Fallback to default Github naming when expression evaluates to empty string
55
run-name: >-
66
${{
7-
inputs.release && inputs.test && 'Build ➤ Test ➤ Publish to NPM' ||
8-
inputs.release && !inputs.test && 'Build ➤ Skip Tests ➤ Publish to NPM' ||
9-
github.event_name == 'workflow_dispatch' && inputs.test && 'Build ➤ Test' ||
10-
github.event_name == 'workflow_dispatch' && !inputs.test && 'Build ➤ Skip Tests' ||
7+
inputs.release && inputs.test && format('Build {0} ➤ Test ➤ Publish to NPM', github.ref_name) ||
8+
inputs.release && !inputs.test && format('Build {0} ➤ Skip Tests ➤ Publish to NPM', github.ref_name) ||
9+
github.event_name == 'workflow_dispatch' && inputs.test && format('Build {0} ➤ Test', github.ref_name) ||
10+
github.event_name == 'workflow_dispatch' && !inputs.test && format('Build {0} ➤ Skip Tests', github.ref_name) ||
1111
''
1212
}}
1313

0 commit comments

Comments
 (0)