-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (39 loc) · 1.19 KB
/
manual-fetch-icons.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
name: '[Manual] Fetch icons'
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: 'Create dotenv file'
run: |
touch .env
echo FIGMA_API_ACCESS_TOKEN=${{ secrets.FIGMA_API_ACCESS_TOKEN }} >> .env
- name: Install dependencies
run: npm install
- name: Build icons
run: npm run build:icons
- name: Commit and push
uses: EndBug/add-and-commit@v9
with:
add: 'build/icons'
message: 'feat: update icons'
new_branch: feat/update-icons
push: true
- name: Create Pull Request
uses: devops-infra/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: feat/update-icons
target_branch: main
title: 'feat: update icons'
body: '**Automated Pull Request to update icons.**'
label: 'icons ✨'
draft: false
ignore_users: 'dependabot'
allow_no_diff: false