forked from benc-uk/workflow-dispatch
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from LudovicTOURMAN/master
Rework getWorkflowRunId() when run-name is provided
- Loading branch information
Showing
15 changed files
with
480 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Message Echo 1 | ||
|
||
on: | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
message: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Failing | ||
|
||
on: | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Long running | ||
|
||
on: | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Named run | ||
run-name: ${{ inputs.run-name }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
run-name: | ||
description: 'The distinct run name used to retrieve the run ID. Defaults to the workflow name' | ||
type: string | ||
required: false | ||
environment: | ||
description: 'The environment name' | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
echo: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Sleep | ||
run: sleep 10s | ||
- name: Echo message | ||
run: | | ||
echo '### Env: ${{ github.event.inputs.environment }} ###' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Timeout | ||
|
||
on: | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
Oops, something went wrong.