Skip to content

Commit

Permalink
New tact of testing
Browse files Browse the repository at this point in the history
  • Loading branch information
TimRoe committed Dec 16, 2023
1 parent 523d086 commit a886940
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 102 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/tokens-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ jobs:
cache: yarn
cache-dependency-path: yarn.lock
- run: yarn install
- name: Build tokens
run: yarn tokens:build
- run: yarn tokens:build
- name: Prepare commit
working-directory: packages/tokens
run: |
Expand All @@ -41,21 +40,16 @@ jobs:
- name: Check for `figma` diff
working-directory: packages/tokens
run: |
echo $FIGMA_FILES_CHANGED
git diff --shortstat figma | wc -l
git diff HEAD --name-only figma | wc -l
git git status figma -uall --porcelain 2>/dev/null| egrep "^(A| A|M| M|R| R|D| D)" | wc -l
echo "FIGMA_FILES_CHANGED=$(git diff HEAD --name-only figma | wc -l)" >> $GITHUB_ENV
- name: No changes to `figma` tokens
if: ${{ env.FIGMA_FILES_CHANGED == 0 }}
run: |
echo $FIGMA_FILES_CHANGED
echo No changes to figma tokens
run: echo No changes to figma tokens
- name: Commit latest `figma` tokens
if: ${{ env.FIGMA_FILES_CHANGED >= 1 }}
working-directory: packages/tokens
run: |
echo $FIGMA_FILES_CHANGED
exit 1
git commit -m 'Build latest figma tokens'
git push
94 changes: 0 additions & 94 deletions packages/tokens/figma/color.json

This file was deleted.

Empty file.
Empty file.
Empty file removed packages/tokens/figma/new.json
Empty file.
Empty file removed packages/tokens/figma/new2.json
Empty file.
Empty file.

0 comments on commit a886940

Please sign in to comment.