Skip to content

Commit

Permalink
feat(09-functions): add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lauromueller committed Nov 7, 2023
1 parent 8191055 commit f81399a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/09-function.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 09 - Using Functions

on:
pull_request:
workflow_dispatch:

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 previous step fails."
- name: I will execute
if: ${{ !cancelled() }}
run: echo "I will always print, except when the workflow is cancelled."
- name: I will execute when cancelled
if: ${{ cancelled() }}
run: echo "I will print if the workflow has been cancelled."

0 comments on commit f81399a

Please sign in to comment.