[Manual] Fetch assets #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |