Skip to content

Commit

Permalink
[filigran-web][Icons] Automate icon creation
Browse files Browse the repository at this point in the history
  • Loading branch information
hervyt committed Oct 14, 2024
1 parent c2e3993 commit d78af7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@ jobs:
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git checkout -b update-icons-branch
git checkout -B update-icons-branch
git status
git add .
git status
git commit -m "Update icons and build artifacts"
git push origin update-icons-branch
git push --set-upstream origin update-icons-branch
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.TOKEN_GITHUB }}
branch: update-icons-branch
Expand Down
1 change: 1 addition & 0 deletions packages/filigran-icon/script/fetchFromFigma.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async function run () {
console.error('The Figma file ID is not defined, you need to set an environment variable `FIGMA_FILE_ID` to run the script');
return;
}

fetchFigmaFile()
.then(data => getComponentsFromNode(data))
.then(components => getIllustrationName(components))
Expand Down

0 comments on commit d78af7c

Please sign in to comment.