-
Notifications
You must be signed in to change notification settings - Fork 47
80 lines (57 loc) · 3.38 KB
/
open-pull-request-for-icon-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
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@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
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 }}