Skip to content

Commit

Permalink
ci: create changeset when figma changed
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieC3 authored Apr 30, 2021
1 parent 67d2314 commit 822bbb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/figma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
id: figma
run: |
curl -s -H 'X-Master-Key: ${{ secrets.FIGMA_API_KEY }}' 'https://api.jsonbin.io/v3/b/608023f5027da70c476dcd52/latest' | jq -r > packages/ui-theme/src/figma.json
echo -e "---\n'@stacks/ui-theme': patch\n---\n\nUpdate figma.json\n" > .changeset/figma-update.md
FILE_CHANGED=$(git status --porcelain)
if [[ -n "${FILE_CHANGED}" ]]; then
echo -e "---\n'@stacks/ui-theme': patch\n---\n\nUpdate figma.json\n" > .changeset/figma-update.md
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down

0 comments on commit 822bbb4

Please sign in to comment.