Skip to content

workflow: Remove if from env conditional #11972

workflow: Remove if from env conditional

workflow: Remove if from env conditional #11972

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Kata Containers CI

Invalid workflow file

The workflow is not valid. In kata-containers/kata-containers/.github/workflows/ci.yaml@d8468cb1789da885cf75ceffec09efa3871282e4 (Line: 21, Col: 11): Error from called workflow kata-containers/kata-containers/.github/workflows/build-kata-static-tarball-amd64.yaml@d8468cb1789da885cf75ceffec09efa3871282e4 (Line: 99, Col: 20): Unrecognized named-value: 'if'. Located at position 1 within expression: if inputs.stage == 'release' && 'yes' || 'no'
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