From 9013ebf0fbf990e4b18d7b74308498080e201cec Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 28 Feb 2022 13:08:30 +0100 Subject: [PATCH] GHA: explicitly specify whether $DISTRO packages require subscription to have all info at one place in the file. --- .github/workflows/rpm.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rpm.yml b/.github/workflows/rpm.yml index 370834fed..3461e824c 100644 --- a/.github/workflows/rpm.yml +++ b/.github/workflows/rpm.yml @@ -17,16 +17,22 @@ jobs: distro: - name: centos release: 7 + subscription: false - name: fedora release: 35 + subscription: false - name: fedora release: 34 + subscription: false - name: sles release: '15.3' + subscription: true - name: sles release: '12.5' + subscription: true - name: opensuse release: '15.3' + subscription: false runs-on: ubuntu-latest @@ -43,7 +49,7 @@ jobs: env: GITLAB_REGISTRY_RO_TOKEN: '${{ secrets.GITLAB_REGISTRY_RO_TOKEN }}' run: | - if [ '${{ matrix.distro.name }}' = sles ]; then + if [ ${{ matrix.distro.subscription }} = true ]; then if [ "$(tr -d '\n' <<<"$GITLAB_REGISTRY_RO_TOKEN" |wc -c)" -eq 0 ]; then echo '::set-output name=CAN_BUILD::false' echo '::set-output name=NEED_LOGIN::false'