Git Product home page Git Product logo

tmorrowdev / figma-plugin-run-github-actions-workflows Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcomontalbano/figma-plugin-run-github-actions-workflows

0.0 0.0 0.0 5.06 MB

Run GitHub Actions workflows from Figma sending the selected page and all selected nodes as inputs.

Home Page: https://www.figma.com/community/plugin/1096890502176164513

JavaScript 2.79% TypeScript 96.21% CSS 0.99%

figma-plugin-run-github-actions-workflows's Introduction

Figma Plugin - Run GitHub Actions workflows

Run GitHub Actions workflows from Figma sending the selected page and all selected nodes as inputs.

Demo

Usage

Figma

Setup on Figma is straightforward. You just need to setup a new workflow clicking on the + button. You'll need a GitHub Access Token to run workflows.

After that, you can select a page and one or more nodes from that page and click on โ–ถ. This will run the selected workflow, passing your selection as workflow' inputs.

GitHub

Before running a workflow for the first time, you'll need to properly setup a GitHub Actions workflow ๐Ÿ˜ƒ.

The GitHub Actions workflow needs to have a set of inputs (the same that the plugin will send):

on: 
  workflow_dispatch:
    inputs:
      fileKey:
        description: Figma file key
        type: string
        required: true
      page:
        description: Stringified selected page (id, name)
        type: string
        default: '{}'
        required: true
      selection:
        description: Stringified array of the selected nodes (id, name)
        type: string
        default: '[]'
        required: true

Aside from this, you'll just need to configure the workflow as you prefer.

Checkout a working example from-figma.yaml.

As you can see inside the above example, you can also transform/manipulate the received inputs in order to shape them as you want.

Figma Export PDFs

What do you think about exporting Figma content as PDF to an FTP Server, just clicking a button from Figma? Would it be cool, isn't it?

Take a look at this workflow and find out how this is totally feasible. Just clone the workflow and setup this Figma plugin ๐Ÿ˜‰

figma-plugin-run-github-actions-workflows's People

Contributors

marcomontalbano avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.