Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: _test - Using Functions
on:
workflow_dispatch:
inputs:
title:
type: string
default: 'RUN'

jobs:
echo1:
runs-on: ubuntu-latest
steps:
- name: Failing Step
run: exit 1
- name: I will be skipped
if: ${{success()}}
run: echo "I will print if previous steps succeed"
- name: I will execute
if: ${{failure()}}
run: echo 'I will print if any of previous step fails.'
- name: I will execute
if: ${{!cancelled()}}
run: |
echo 'I will always print except when its cancelled'
echo ${{inputs.title}}
- name: Run this if title equals RUN
if: contains(inputs.title, 'RUN')
run: echo "Title value is RUN and hence running this step"