Skip to content

merge queue: checking release/2.12 (954b4da) and #1002 together #1101

merge queue: checking release/2.12 (954b4da) and #1002 together

merge queue: checking release/2.12 (954b4da) and #1002 together #1101

Workflow file for this run

name: CI
on:
workflow_call:
inputs:
trigger:
required: false
type: string
default: "merge_group"
push:
branches:
- staging
- trying
pull_request:
types: ['opened', 'reopened', 'synchronize']
merge_group:
jobs:
lint-ci:
if: inputs.trigger != 'try'
uses: ./.github/workflows/lint.yml
helm-ci:
uses: ./.github/workflows/helm-chart.yml
secrets: inherit
with:
trigger: ${{ inputs.trigger == 'try' && 'try' || startsWith(github.head_ref, 'mergify/merge-queue/') && 'merge_group' || github.event_name}}
int-ci:
if: inputs.trigger != 'try'
uses: ./.github/workflows/unit-int.yml
image-ci:
if: github.event_name != 'pull_request' || inputs.trigger == 'try' || startsWith(github.head_ref, 'mergify/merge-queue/')
uses: ./.github/workflows/image-pr.yml
k8s-ci:
if: github.event_name != 'pull_request' || inputs.trigger == 'try' || startsWith(github.head_ref, 'mergify/merge-queue/')
uses: ./.github/workflows/k8s-ci.yml
secrets: inherit
ci:
if: ${{ !cancelled() && (github.event_name != 'pull_request' || inputs.trigger == 'try' || startsWith(github.head_ref, 'mergify/merge-queue/')) }}
needs:
- lint-ci
- helm-ci
- int-ci
- image-ci
- k8s-ci
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: |
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
exit 1
fi
exit 0