workflow: Remove if from env conditional #11977
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Kata Containers CI | ||
on: | ||
pull_request_target: | ||
branches: | ||
- 'main' | ||
- 'stable-*' | ||
types: | ||
# Adding 'labeled' to the list of activity types that trigger this event | ||
# (default: opened, synchronize, reopened) so that we can run this | ||
# workflow when the 'ok-to-test' label is added. | ||
# Reference: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target | ||
- opened | ||
- synchronize | ||
- reopened | ||
- labeled | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
Check failure on line 21 in .github/workflows/ci-on-push.yaml GitHub Actions / Kata Containers CIInvalid workflow file
|
||
kata-containers-ci-on-push: | ||
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }} | ||
uses: ./.github/workflows/ci.yaml | ||
with: | ||
commit-hash: ${{ github.event.pull_request.head.sha }} | ||
pr-number: ${{ github.event.pull_request.number }} | ||
tag: ${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }} | ||
target-branch: ${{ github.event.pull_request.base.ref }} | ||
secrets: inherit |