From 51075205b9d9c8a364a35d7f3eecb32af738f626 Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 12 Jan 2022 08:22:49 +0530 Subject: [PATCH] Chore: Run ci only when label is added (#1796) * run ci only when label 'run-ci' is added * add labeled type * fix label --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 535bb98225..291373bc5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ on: push: branches: [develop, main] pull_request: + types: [ labeled ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -28,6 +29,7 @@ env: jobs: build: runs-on: ubuntu-latest + if: ${{ github.event.label.name == 'run-ci' }} steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it @@ -56,6 +58,7 @@ jobs: lint: runs-on: ubuntu-latest + if: ${{ github.event.label.name == 'run-ci' }} steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it