forked from ExamProCo/Github-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f513388
commit b46f564
Showing
1 changed file
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Conditions + Functions Workflow | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
name: | ||
description: Just a name | ||
type: string | ||
required: false | ||
fullload: | ||
description: Defines if all steps of the jobs should be run. | ||
type: boolean | ||
required: true | ||
|
||
jobs: | ||
|
||
print-inputs: | ||
if: inputs.fullload | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: printing-name | ||
name: Printing name | ||
run: echo "${{inputs.name}}" | ||
- id: checking-name | ||
name: Checking name | ||
if: ${{startsWith(inputs.name, 'V')}} | ||
run: echo "The name is a valid ''V' name" | ||
- id: completion | ||
name: Completion | ||
run: echo ${{success}} |