From 20374c2ffea20b130e78d5138d3ccf43068fb8f6 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Tue, 20 Feb 2024 15:09:53 +0900 Subject: [PATCH] Added workflow to update Red Hat Container Catalog --- .github/workflows/rhel_registry_description.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rhel_registry_description.yml b/.github/workflows/rhel_registry_description.yml index 4b87dd6f7..8d06bde51 100644 --- a/.github/workflows/rhel_registry_description.yml +++ b/.github/workflows/rhel_registry_description.yml @@ -52,12 +52,11 @@ jobs: github_ref: ${{ github.ref }} run: | result=false - sha_short=$(git rev-parse --short HEAD) github_ref=${github_ref##*/} echo "::group::Branch metadata" - echo "secret_prefix=RHEL_${github_ref//.}" + echo "zabbix_release=${github_ref//.}" echo "::endgroup::" echo "zabbix_release=${github_ref//.}" >> $GITHUB_OUTPUT @@ -135,14 +134,14 @@ jobs: python -m pip install --upgrade pip pip install markdown requests - - name: Update Red Hat project description (${{ matrix.component }}-${{ needs.branch_info.outputs.zabbix_release }}) + - name: Update Red Hat project description (${{ matrix.component }}-${{ needs.init.outputs.zabbix_release }}) env: DESCRIPTION_FILE: ${{ format('{0}/{1}/rhel/README', env.DOCKERFILES_DIRECTORY, matrix.component) }} - PROJECT_ID: ${{ secrets[format('RHEL_{0}_{1}_PROJECT', needs.branch_info.outputs.zabbix_release, needs.var_format.outputs.matrix_build)] }} + PROJECT_ID: ${{ secrets[format('RHEL_{0}_{1}_PROJECT', needs.init.outputs.zabbix_release, needs.var_format.outputs.matrix_build)] }} PYXIS_API_TOKEN: ${{ secrets.REDHAT_API_TOKEN }} API_URL: ${{ env.API_URL }} COMPONENT: ${{ matrix.component }} - ZABBIX_RELEASE: ${{ needs.branch_info.outputs.zabbix_release }} + ZABBIX_RELEASE: ${{ needs.init.outputs.zabbix_release }} run: | python ./.github/scripts/rhel_description.py echo "https://catalog.redhat.com/software/containers/zabbix/zabbix-${COMPONENT}-${ZABBIX_RELEASE}/${PROJECT_ID}"