Chore: Run ci only when label is added (#1796)

* run ci only when label 'run-ci' is added

* add labeled type

* fix label
This commit is contained in:
Akshay 2022-01-12 08:22:49 +05:30 committed by GitHub
parent 12bf65605f
commit 51075205b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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