From 933171cb01a62f3940df33cf14772ee1620bdebf Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Mon, 19 Feb 2024 23:30:29 +0900 Subject: [PATCH] Added workflow to update Red Hat Container Catalog --- .github/workflows/rhel_registry_description.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/rhel_registry_description.yml b/.github/workflows/rhel_registry_description.yml index 2fcae397b..62f9c6552 100644 --- a/.github/workflows/rhel_registry_description.yml +++ b/.github/workflows/rhel_registry_description.yml @@ -12,6 +12,7 @@ on: env: DOCKERFILES_DIRECTORY: "./Dockerfiles" API_URL: "https://catalog.redhat.com/api/containers/v1/projects/certification/id/" + MATRIX_FILE: "build.json" defaults: run: @@ -71,6 +72,16 @@ jobs: echo "secret_prefix=RHEL_${github_ref//.}" >> $GITHUB_OUTPUT + - name: Check ${{ env.MATRIX_FILE }} file + id: build_exists + env: + MATRIX_FILE: ${{ env.MATRIX_FILE }} + run: | + if [[ ! -f "$MATRIX_FILE" ]]; then + echo "::error::File $MATRIX_FILE is missing" + exit 1 + fi + - name: Prepare Zabbix component list id: components env: