From 25fa398e91a6908b3b2aacf3a58bf05aadcd4fed Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Tue, 20 Feb 2024 15:53:14 +0900 Subject: [PATCH 1/2] Added workflow to update Red Hat Container Catalog --- .github/scripts/rhel_description.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/scripts/rhel_description.py b/.github/scripts/rhel_description.py index aab8dd470..bafc3a271 100644 --- a/.github/scripts/rhel_description.py +++ b/.github/scripts/rhel_description.py @@ -7,13 +7,13 @@ import os repository_description = None if ("DESCRIPTION_FILE" not in os.environ or len(os.environ["DESCRIPTION_FILE"]) == 0): - print("Description file environment variable is not specified") + print("::error::Description file environment variable is not specified") sys.exit(1) if ("PYXIS_API_TOKEN" not in os.environ or len(os.environ["PYXIS_API_TOKEN"]) == 0): - print("API token environment variable is not specified") + print("::error::API token environment variable is not specified") sys.exit(1) if ("API_URL" not in os.environ or len(os.environ["API_URL"]) == 0): - print("API URL environment variable is not specified") + print("::error::API URL environment variable is not specified") sys.exit(1) if ("PROJECT_ID" not in os.environ or len(os.environ["PROJECT_ID"]) == 0): print("RedHat project ID environment variable is not specified") @@ -30,7 +30,7 @@ elif (os.path.isfile(os.environ["DESCRIPTION_FILE"] + '.html')): file.close() if (repository_description is None or len(repository_description) == 0): - print("No description") + print("::error::No description file found") sys.exit(1) data = dict() From 9943eb2590c59a299de04ea488d791b93814de6c Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Tue, 20 Feb 2024 15:55:27 +0900 Subject: [PATCH 2/2] Added workflow to update Red Hat Container Catalog --- .github/workflows/rhel_registry_description.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rhel_registry_description.yml b/.github/workflows/rhel_registry_description.yml index 447ecf19b..dd979db32 100644 --- a/.github/workflows/rhel_registry_description.yml +++ b/.github/workflows/rhel_registry_description.yml @@ -126,7 +126,7 @@ jobs: echo "matrix_build=${MATRIX_BUILD}" >> $GITHUB_OUTPUT - name: Setup Python 3.x - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x'