From 57b5bc49d1c4af06b7fac95c0156c1c8e02f20d0 Mon Sep 17 00:00:00 2001 From: Tim R Date: Fri, 15 Dec 2023 19:31:31 -0600 Subject: [PATCH] May have it now --- .github/workflows/tokens-build.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tokens-build.yml b/.github/workflows/tokens-build.yml index a7549e53..1ac9db0a 100644 --- a/.github/workflows/tokens-build.yml +++ b/.github/workflows/tokens-build.yml @@ -45,20 +45,19 @@ jobs: git config --global user.email 'va-mobileapp@adhocteam.us' git pull git add -f figma/ + git status --porcelain 2>/dev/null| egrep "^(A| A|M| M|D| D)" | wc -l - name: Check figma diff id: diff working-directory: packages/tokens run: | echo $FILES_MODIFIED - git status --porcelain 2>/dev/null | egrep "^(M| M|D| D)" | wc -l - echo "FILES_MODIFIED=$(git status --porcelain 2>/dev/null| egrep "^(M| M|D| D)" | wc -l)" >> $GITHUB_ENV + git status --porcelain 2>/dev/null| egrep "^(A| A|M| M|D| D)" | wc -l + echo "FILES_MODIFIED=$(git status --porcelain 2>/dev/null| egrep "^(A| A|M| M|D| D)" | wc -l)" >> $GITHUB_ENV - name: No changes to figma tokens if: ${{ env.FILES_MODIFIED == '0' }} run: | echo $FILES_MODIFIED echo No changes to figma tokens - # run: | - # echo 'test=noDiff' >> 'No changes to figma tokens' - name: Commit latest figma tokens id: built if: ${{ env.FILES_MODIFIED == '1' }}