Skip to content

Conditions + Functions Workflow #7

Conditions + Functions Workflow

Conditions + Functions Workflow #7

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

View workflow run for this annotation

GitHub Actions / Conditions + Functions Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/conditional+functions.yml (Line: 38, Col: 14): Unexpected symbol: 'GITHUB*URL'. Located at position 1 within expression: GITHUB*URL, ',')