Skip to content

Commit

Permalink
Commit ExamProCo#30
Browse files Browse the repository at this point in the history
  • Loading branch information
vadzim-kuzmich authored Aug 18, 2024
1 parent f513388 commit b46f564
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/conditional+functions.yml
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}}

0 comments on commit b46f564

Please sign in to comment.