From 9062b722924d73b589909e18dc0d6b9edb165c43 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Tue, 20 Feb 2024 01:07:02 +0900 Subject: [PATCH 1/2] Added workflow to update Red Hat Container Catalog --- .github/workflows/rhel_registry_description.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rhel_registry_description.yml b/.github/workflows/rhel_registry_description.yml index 6fe0af902..4b0ecb485 100644 --- a/.github/workflows/rhel_registry_description.yml +++ b/.github/workflows/rhel_registry_description.yml @@ -125,5 +125,9 @@ jobs: PROJECT_ID: ${{ secrets[format('{0}_{1}_PROJECT', steps.branch_info.outputs.secret_prefix, steps.var_format.outputs.matrix_build)] }} PYXIS_API_TOKEN: ${{ secrets.REDHAT_API_TOKEN }} API_URL: ${{ env.API_URL }} - run: python ./.github/scripts/rhel_description.py + COMPONENT: ${{ matrix.component }} + ZABBIX_RELEASE: ${{ steps.branch_info.outputs.zabbix_release }} + run: | + python ./.github/scripts/rhel_description.py + echo "https://catalog.redhat.com/software/containers/zabbix/zabbix-${COMPONENT}-${ZABBIX_RELEASE}/${PROJECT_ID}" From 4e3bd6af7d4259f3d8af7d1d59a914c4764f080d Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Tue, 20 Feb 2024 01:07:39 +0900 Subject: [PATCH 2/2] Added workflow to update Red Hat Container Catalog --- .github/scripts/rhel_description.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/rhel_description.py b/.github/scripts/rhel_description.py index 5c8bc238d..aab8dd470 100644 --- a/.github/scripts/rhel_description.py +++ b/.github/scripts/rhel_description.py @@ -43,6 +43,6 @@ result = requests.patch(os.environ["API_URL"] + os.environ["PROJECT_ID"], data = json.dumps(data)) print("::group::Result") -print("Response code: " + str(result)) +print("Response code: " + str(result.status_code)) print("Last update date: " + json.loads(result.content)['last_update_date']) print("::endgroup::")