-
Notifications
You must be signed in to change notification settings - Fork 37
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
8 additions
and
3 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 |
---|---|---|
|
@@ -21,12 +21,18 @@ jobs: | |
- name: Generate tokens files | ||
run: melos gen_theme | ||
|
||
- name: Check if tailor file was changed | ||
id: tailor_changed | ||
run: git status --porcelain | grep -q 'tailor.dart' | ||
continue-on-error: true | ||
|
||
- name: Commit changes | ||
if: steps.tailor_changed.outcome == 'success' | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "mews-tech" | ||
git add . | ||
git add optimus/lib/src/theme/optimus_tokens.tailor.dart | ||
git commit -m "Update generated files" | ||
git push origin ${{ github.ref_name }} | ||
|
@@ -38,7 +44,6 @@ jobs: | |
--base master \ | ||
--head ${{ github.ref_name }} \ | ||
--title 'feat: Design Tokens Update' \ | ||
--body 'Design Tokens were updated! This PR was created to update the code.' \ | ||
--reviewer witwash | ||
--body 'Design Tokens were updated! This PR was created to update the code.' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |