From 9826099c92e5855d4dce17e7b8c370643ec2e0d5 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 25 Nov 2024 07:33:37 -0300 Subject: [PATCH] Trynto fix TX_TOKEN availability check in sync.yml (#249) --- .github/workflows/sync.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index bb56aa323..2bb7ea388 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -64,7 +64,7 @@ jobs: shell: bash run: | available=false - [ "${{ secrets.TX_TOKEN }}" != '' ] && available=true + [[ "${{ secrets.TX_TOKEN }}" != '' ]] && available=true echo "available=$available" >> $GITHUB_OUTPUT echo "available=$available" @@ -113,7 +113,7 @@ jobs: powrap *.po **/*.po - name: Update statistics - if: always() && ${{ steps.secret-check.outputs.available != 'true' }} + if: always() && steps.secret-check.outputs.available == 'true' run: | python ./scripts/tx_stats.py > ./${{ env.LANGUAGE_DIR }}/stats.json git -C ./${{ env.LANGUAGE_DIR }} diff stats.json