From 56deae29aef79cc5ba07244b05b92d110aa81f2d Mon Sep 17 00:00:00 2001 From: Vitalij Vascenko Date: Wed, 6 Dec 2023 02:07:22 +0100 Subject: [PATCH] ci: Update tokens action --- .github/workflows/tokens-pr.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tokens-pr.yml b/.github/workflows/tokens-pr.yml index b11702ea..a9603012 100644 --- a/.github/workflows/tokens-pr.yml +++ b/.github/workflows/tokens-pr.yml @@ -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 "tech.account@mewssystems.com" 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 }}