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