Skip to content

Commit

Permalink
remove spaces from KRS
Browse files Browse the repository at this point in the history
  • Loading branch information
ivellios authored Sep 29, 2024
1 parent b7a3c3e commit 4b53588
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/nowa-organizacja.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b53588

Please sign in to comment.