Skip to content

Commit e804884

Browse files
committed
more run-name
1 parent 515e31b commit e804884

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/powershell.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99

1010
name: Powershell CI
1111
run-name: >-
12-
Validate ${{
13-
github.event_name == 'push' && format(': {0}', github.event.head_commit.message)
12+
Validate
13+
${{ github.event_name == 'push' && format('-- {0}', github.event.head_commit.message)
1414
|| github.event_name == 'pull_request' && format('PR #{0}: {1}', github.event.pull_request.number, github.event.pull_request.title)
1515
|| github.event_name == 'schedule' && 'Scheduled'
1616
|| github.event_name == 'workflow_dispatch' && 'Manual Dispatch'
17-
|| 'CI Run'
17+
|| github.event_name == 'workflow_run' && format('from workflow {0}', github.event.workflow_run.display_title)
18+
|| format('CI Run for commit {0}', github.sha)
1819
}}
1920
2021
on:

.github/workflows/publish-to-psgallery.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: Publish to PSGallery
22
run-name: >-
33
Publish
4-
${{ github.event_name == 'push' && format(': {0}', github.event.head_commit.message)
4+
${{ github.event_name == 'push' && format('-- {0}', github.event.head_commit.message)
55
|| github.event_name == 'pull_request' && format('PR #{0}: {1}', github.event.pull_request.number, github.event.pull_request.title)
66
|| github.event_name == 'schedule' && 'Scheduled'
77
|| github.event_name == 'workflow_dispatch' && 'Manual Dispatch'
8-
|| 'CI Run'
8+
|| github.event_name == 'workflow_run' && format('from workflow {0}', github.event.workflow_run.display_title)
9+
|| format('CI Run for commit {0}', github.sha)
910
}}
1011
1112
on:

0 commit comments

Comments
 (0)