From 4cc9869bc0dbdf24d9b7460ddf1f2725f4dd4980 Mon Sep 17 00:00:00 2001 From: Richard Pringle Date: Tue, 9 Apr 2024 10:13:27 -0400 Subject: [PATCH] Add check for 'run all ci' label --- .github/workflows/run-all-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/run-all-ci.yml diff --git a/.github/workflows/run-all-ci.yml b/.github/workflows/run-all-ci.yml new file mode 100644 index 0000000000..adfa13c741 --- /dev/null +++ b/.github/workflows/run-all-ci.yml @@ -0,0 +1,20 @@ +# Copyright (C) 2023, Ava Labs, Inc. All rights reserved. +# See the file LICENSE for licensing terms. + +name: Run All CI + +on: + pull_request: + types: [opened, synchronize, reopened, labeled] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + +jobs: + check-for-label: + runs-on: ubuntu-latest + steps: + - run: if $RUN_ALL_CI == true; then exit 0; else exit 1; fi + env: + RUN_ALL_CI: ${{ contains(github.event.pull_request.labels.*.name, 'run all ci') }}