From 4b5358885c93442a49fb9cc4cedc1be789d523e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janusz=20Kamie=C5=84ski?= <200957+ivellios@users.noreply.github.com> Date: Sun, 29 Sep 2024 20:49:19 +0200 Subject: [PATCH] remove spaces from KRS --- .github/workflows/nowa-organizacja.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nowa-organizacja.yaml b/.github/workflows/nowa-organizacja.yaml index d7e05b9..b3e7355 100644 --- a/.github/workflows/nowa-organizacja.yaml +++ b/.github/workflows/nowa-organizacja.yaml @@ -61,10 +61,15 @@ jobs: name: Sprawdzanie numeru KRS runs-on: ubuntu-latest steps: + - name: Wyciąganie KRS + id: krs_pick + run: | + TMP_KRS=${{ fromJson(needs.validate-form.outputs.payload )['KRS przypisany do Twojej organizacji'] }} + echo "KRS=${TMP_KRS//[[:blank:]]/}" >> $GITHUB_OUTPUT - name: Wyciąganie długości KRS id: krs_length - run: - echo "KRS_LENGTH=$(v=${{ fromJson(needs.validate-form.outputs.payload )['KRS przypisany do Twojej organizacji'] }}; echo ${#v})" >> $GITHUB_OUTPUT + run: | + echo "KRS_LENGTH=$(v=${{ steps.krs_pick.outputs.KRS }}; echo ${#v})" >> $GITHUB_OUTPUT - name: Sprawdzanie numeru KRS if: steps.krs_length.outputs.KRS_LENGTH != '10' run: exit 1