Skip to content

Commit

Permalink
add optional argument for workflow_dispatch to specify the title of t…
Browse files Browse the repository at this point in the history
…he workflow run
  • Loading branch information
georgemccabe committed Dec 9, 2024
1 parent 861901a commit 448c6a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Testing
run-name: ${{ (github.event_name == 'workflow_dispatch' && (github.event.inputs.repository || 'Manual Trigger Testing')) || (github.event_name == 'pull_request' && github.event.pull_request.title) || (github.event_name == 'push' && github.event.head_commit.message) || github.workflow }}
run-name: ${{ (github.event_name == 'workflow_dispatch' && (github.event.inputs.title || github.event.inputs.repository || 'Manual Trigger Testing')) || (github.event_name == 'pull_request' && github.event.pull_request.title) || (github.event_name == 'push' && github.event.head_commit.message) || github.workflow }}
on:

push:
Expand Down Expand Up @@ -32,6 +32,8 @@ on:

workflow_dispatch:
inputs:
title:
description: 'Optional title of workflow run'
force_met_image:
description: 'MET DockerHub repo to force run to use, e.g. met:11.1.0 or met-dev:feature_XYZ_name-PR. Leave this blank to determine repo automatically.'
repository:
Expand Down

0 comments on commit 448c6a0

Please sign in to comment.