Skip to content

Fetch Dataviz tokens from Figma #1

Fetch Dataviz tokens from Figma

Fetch Dataviz tokens from Figma #1

Workflow file for this run

---
name: Fetch Dataviz tokens 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: Import Dataviz tokens from Figma
run: pnpm import:dataviz
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch-suffix: timestamp
commit-message: Dataviz tokens 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: "Dataviz tokens updates from Figma"
body: |
Updates to data vizualization tokens fetched from Figma
- Check diff under tokens folder to see what's changed
reviewers: imprashast,Skadefryd