ci: Run the cancel workflow on generic workers and update action

No need to bottleneck on the self hosted worker(s) when this is a light
job that needs to run as soon as possible so that it can cancel early.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
This commit is contained in:
Andrei Gherzan 2022-07-30 00:02:45 +02:00 committed by Andrei Gherzan
parent 260b3b97d0
commit 1a15fefb27

View File

@ -15,9 +15,9 @@ on:
jobs:
cancel-redundant-workflows:
runs-on: [self-hosted, Linux]
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.9.1
- uses: styfle/cancel-workflow-action@0.10.0
with:
all_but_latest: true
workflow_id: ${{ github.event.workflow.id }}