-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (39 loc) · 1.2 KB
/
manual-fetch-assets.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 assets'
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 assets
run: npm run build:assets
- name: Commit and push
uses: EndBug/add-and-commit@v9
with:
add: 'build/assets'
message: 'feat: update assets'
new_branch: feat/update-assets
push: true
- name: Create Pull Request
uses: devops-infra/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: feat/update-assets
target_branch: main
title: 'feat: update assets'
body: '**Automated Pull Request to update assets.**'
label: 'assets 🏞'
draft: false
ignore_users: 'dependabot'
allow_no_diff: false