-
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
2 changed files
with
47 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Create Design Tokens PR | ||
on: | ||
push: | ||
branches: | ||
- "design-tokens-**" | ||
|
||
jobs: | ||
pull-request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
- name: Set up Flutter | ||
uses: "./.github/actions/setup" | ||
|
||
- name: Generate tokens files | ||
run: melos gen_theme | ||
|
||
- name: Commit changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "mews-tech" | ||
git add . | ||
git commit -m "Update generated files" | ||
git push origin ${{ github.ref_name }} | ||
- name: Create Pull Request | ||
run: | | ||
gh pr create \ | ||
--base master \ | ||
--head ${{ github.ref_name }} \ | ||
--title 'feat: Design Tokens Update' \ | ||
--body 'Design Tokens were updated! This PR was created to update the code.' \ | ||
--reviwer MewsSystems/tech.mo.platform.owners | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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