From f81399aefb23c0146bbce4cd9c4a76e26f41eee4 Mon Sep 17 00:00:00 2001 From: Lauro Fialho Mueller Date: Tue, 7 Nov 2023 14:16:17 +0100 Subject: [PATCH] feat(09-functions): add workflow --- .github/workflows/09-function.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/09-function.yaml diff --git a/.github/workflows/09-function.yaml b/.github/workflows/09-function.yaml new file mode 100644 index 0000000..aa9160d --- /dev/null +++ b/.github/workflows/09-function.yaml @@ -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."