Skip to content

Commit

Permalink
[ADF-5546] Don't run forbidden labels job when cron runs e2es (#8632)
Browse files Browse the repository at this point in the history
* [ADF-5546] Don't run forbidden labels job when cron runs e2es

* [ADF-5546] Correct wording

* [ADF-5546] Fix forbidden labels job condition
  • Loading branch information
MichalKinas committed Jun 7, 2023
1 parent 826cdf5 commit a612263
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cron-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,6 @@ jobs:
run-e2e:
name: run e2e
uses: ./.github/workflows/pull-request.yml
with:
cron-run: true
secrets: inherit
6 changes: 6 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a612263

Please sign in to comment.