-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,12 +29,24 @@ jobs: | |
- name: Build tokens | ||
run: | | ||
yarn tokens:build | ||
- name: Commit latest figma tokens | ||
working-directory: packages/tokens | ||
- name: Prepare commit | ||
run: | | ||
git config --global user.name 'VA Automation Bot' | ||
git config --global user.email '[email protected]' | ||
git pull | ||
git add -f figma/ | ||
- name: Check figma diff | ||
id: diff | ||
working-directory: packages/tokens | ||
run: | | ||
git commit --dry-run | ||
- name: No changes to figma tokens | ||
if: steps.diff.conclusion == 'failure' | ||
run: | | ||
echo No changes to figma tokens | ||
- name: Commit latest figma tokens | ||
if: steps.diff.conclusion == 'success' | ||
working-directory: packages/tokens | ||
run: | | ||
git commit -m 'Build latest figma tokens' | ||
git push |