[ADF-5546] Don't run forbidden labels job when cron runs e2es (#8632)

* [ADF-5546] Don't run forbidden labels job when cron runs e2es

* [ADF-5546] Correct wording

* [ADF-5546] Fix forbidden labels job condition
This commit is contained in:
MichalKinas 2023-06-07 15:45:13 +02:00 committed by GitHub
parent 826cdf52b9
commit a612263762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -70,4 +70,6 @@ jobs:
run-e2e:
name: run e2e
uses: ./.github/workflows/pull-request.yml
with:
cron-run: true
secrets: inherit

View File

@ -13,6 +13,11 @@ on:
required: false
type: string
default: false
cron-run:
description: 'disables jobs which should not run when cron runs e2es'
required: false
type: boolean
default: false
pull_request:
types: [opened, synchronize, reopened]
branches:
@ -450,6 +455,7 @@ jobs:
deps: ${{ matrix.e2e-test.deps }}
PR-forbidden-labels:
if: ${{ github.event.inputs.cron-run == '' || github.event.inputs.cron-run == 'false' }}
runs-on: ubuntu-latest
steps:
- id: checkoutRepo