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 8c5ab7e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,19 @@ 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.TOKEN_GITHUB }}
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-icons-branch
title: "Update icons and build artifacts"
body: "This PR was automatically created by GitHub Actions after building the icons."
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 8c5ab7e

Please sign in to comment.