From 31624397b0b9b2664a8363a5c02147ecdd1cb7f4 Mon Sep 17 00:00:00 2001 From: Lauro Fialho Mueller Date: Tue, 26 Dec 2023 16:03:48 +0100 Subject: [PATCH] feat(19-concurrency): add job concurrency example --- .github/workflows/19-1-concurrency.yaml | 2 +- .github/workflows/19-2-concurrency.yaml | 30 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/19-2-concurrency.yaml diff --git a/.github/workflows/19-1-concurrency.yaml b/.github/workflows/19-1-concurrency.yaml index f96d53f..245be92 100644 --- a/.github/workflows/19-1-concurrency.yaml +++ b/.github/workflows/19-1-concurrency.yaml @@ -1,4 +1,4 @@ -name: 19 - Managing Concurrency +name: 19 - 1 - Managing Concurrency on: workflow_dispatch: diff --git a/.github/workflows/19-2-concurrency.yaml b/.github/workflows/19-2-concurrency.yaml new file mode 100644 index 0000000..2647344 --- /dev/null +++ b/.github/workflows/19-2-concurrency.yaml @@ -0,0 +1,30 @@ +name: 19 - 2 - Managing Concurrency + +on: + workflow_dispatch: + +jobs: + ping-with-concurrency: + runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - uses: actions/checkout@v4 + - name: Ping URL + id: ping-url + uses: ./.github/actions/docker-ping-url + with: + url: https://www.invalid-ubfadufhbaudhfua.com + max_trials: 20 + delay: 5 + ping-without-concurrency: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Ping URL + id: ping-url + uses: ./.github/actions/docker-ping-url + with: + url: https://www.invalid-ubfadufhbaudhfua.com + max_trials: 20 + delay: 5