Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update tokens action #485

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/tokens-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
ookami-kb marked this conversation as resolved.
Show resolved Hide resolved
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 }}
Expand All @@ -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 }}
Loading