mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-04 12:31:27 +00:00
This fixes that error everywhere by adding a `name:` field to all jobs that were missing it. We keep the same name as the job ID to ensure no disturbance to the required job names. Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
name: kata-runtime-classes-sync
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- reopened
|
|
- synchronize
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
kata-deploy-runtime-classes-check:
|
|
name: kata-deploy-runtime-classes-check
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
persist-credentials: false
|
|
- name: Ensure the split out runtime classes match the all-in-one file
|
|
run: |
|
|
pushd tools/packaging/kata-deploy/runtimeclasses/
|
|
echo "::group::Combine runtime classes"
|
|
for runtimeClass in $(find . -type f \( -name "*.yaml" -and -not -name "kata-runtimeClasses.yaml" \) | sort); do
|
|
echo "Adding ${runtimeClass} to the resultingRuntimeClasses.yaml"
|
|
cat "${runtimeClass}" >> resultingRuntimeClasses.yaml;
|
|
done
|
|
echo "::endgroup::"
|
|
echo "::group::Displaying the content of resultingRuntimeClasses.yaml"
|
|
cat resultingRuntimeClasses.yaml
|
|
echo "::endgroup::"
|
|
echo ""
|
|
echo "::group::Displaying the content of kata-runtimeClasses.yaml"
|
|
cat kata-runtimeClasses.yaml
|
|
echo "::endgroup::"
|
|
echo ""
|
|
diff resultingRuntimeClasses.yaml kata-runtimeClasses.yaml
|