Skip to content

Commit

Permalink
Add a fetch github action to do the fetching on GH
Browse files Browse the repository at this point in the history
  • Loading branch information
imprashast committed Jun 6, 2024
1 parent d48fae8 commit 3b72e93
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/fetch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Fetch from Figma
on:
workflow_dispatch:

jobs:
createPullRequest:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: lts/*
- uses: pnpm/action-setup@v2
with:
version: 9
run_install: true
- name: create env file
run: |
touch .env
echo FIGMA_TOKEN=${{ secrets.FIGMA_TOKEN }} >> .env
- name: Build
run: pnpm build
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch-suffix: timestamp
commit-message: Updates from figma
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
title: 'Updates from figma'
body: |
Updates fetched from Figma
- Check diff under tokens folder to see what's changed
team-reviewers: warp-ds/warp-core-team

0 comments on commit 3b72e93

Please sign in to comment.