Skip to content

Sync & Build Icons

Sync & Build Icons #45

name: Sync & Build Icons
on:
workflow_dispatch:
env:
NODE_VERSION: '20.x'
jobs:
sync_iconset:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
cache-dependency-path: yarn.lock
- name: Install Dependencies
run: yarn install --immutable
- name: Sync icons
env:
# this is Brian's personal access token
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}
run: yarn sync
working-directory: packages/flight-icons
- name: Build icons
run: yarn build
working-directory: packages/flight-icons
- name: Open a PR
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
branch: 'hds-icon-export'
branch-suffix: 'short-commit-hash'
commit-message: 'sync & build of flight icons'
title: 'Updated export of icons from Figma'
body: |
### :pushpin: Summary
This is an automated PR opened by the Hashibot-HDS using the GitHub Action [Sync & Build Icons](https://github.com/hashicorp/design-system/actions/workflows/open-pull-request-for-icon-update.yml).
### :hammer_and_wrench: Detailed description
<!-- (Remove this comment) once done ------------
Add specific details for this PR here:
- which icons has been added?
- which icons have been changed, updated or deleted?
Make sure that you have followed the instructions described here:
https://github.com/hashicorp/design-system/blob/main/packages/flight-icons/CONTRIBUTING.md#updating-the-icons-in-flight-icons ("Updating the icons in flight-icons" + "Automated process" + "After you have run the scripts")
Make sure that the "changeset" is added to the PR _before_ asking for review (and especially don't merge to `main` if the changeset is missing).
⚠️ Note: The changeset needs to be applied only to the `@hashicorp/flight-icons` version (typically a new icon or a significant change to an existing icon is considered a `minor` change, a breaking change is always considered a `major`, while for a small update to an icon a `patch` is OK).
------- (end of the comment to remove) -->
### :camera_flash: Screenshots
<!-- Add relevant screenshots if needed -->
### :link: External links
<!-- Add links to relevant Jira issues, Figma files/frames, Slack threads, documents, etc. -->
Jira ticket: [HDS-XXX](https://hashicorp.atlassian.net/browse/HDS-XXX)
Figma file: [if it applies]
***
### 👀 Component checklist
- [ ] A changelog entry was added via [Changesets](https://github.com/changesets/changesets) if needed ([instructions here](https://github.com/hashicorp/design-system/blob/main/packages/flight-icons/CONTRIBUTING.md#updating-the-icons-in-flight-icons) / [expected format here](https://hashicorp.atlassian.net/wiki/spaces/HDS/pages/3243114706/Changelog+authoring+best+practices#New-icons))
- [ ] Percy was checked for any visual regression
token: ${{ secrets.PAT_TOKEN }}