Conditions + Functions Workflow #7
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
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 | ||
if: ${{success()}} | ||
run: echo "Well done!" | ||
print-functions: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: concatenation | ||
name: Concatenation | ||
run: echo ${{GITHUB*URL, ',')}} | ||
Check failure on line 38 in .github/workflows/conditional+functions.yml GitHub Actions / Conditions + Functions WorkflowInvalid workflow file
|