Skip to content

Commit

Permalink
ci: Update tokens action (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash authored Dec 7, 2023
1 parent 6d40eb0 commit 6dbdff6
Showing 1 changed file with 8 additions and 3 deletions.
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'
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 }}

0 comments on commit 6dbdff6

Please sign in to comment.