{"id":15398426,"url":"https://github.com/marcomontalbano/figma-plugin-run-github-actions-workflows","last_synced_at":"2025-04-15T22:30:55.641Z","repository":{"id":87862593,"uuid":"475136206","full_name":"marcomontalbano/figma-plugin-run-github-actions-workflows","owner":"marcomontalbano","description":"Run GitHub Actions workflows directly within Figma, using the selected page and nodes as inputs.","archived":false,"fork":false,"pushed_at":"2024-05-10T20:29:25.000Z","size":15157,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T03:41:28.797Z","etag":null,"topics":["automation","figma","figma-plugin","github-actions","github-workflows","trigger"],"latest_commit_sha":null,"homepage":"https://www.figma.com/community/plugin/1096890502176164513/run-github-actions-workflows","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcomontalbano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-28T18:47:50.000Z","updated_at":"2024-05-10T20:17:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"9accd1fe-54f0-44d5-bfa2-dfa91a998f31","html_url":"https://github.com/marcomontalbano/figma-plugin-run-github-actions-workflows","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"9e68ee04ae3e86b664855daefdb60411813550af"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcomontalbano%2Ffigma-plugin-run-github-actions-workflows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcomontalbano%2Ffigma-plugin-run-github-actions-workflows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcomontalbano%2Ffigma-plugin-run-github-actions-workflows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcomontalbano%2Ffigma-plugin-run-github-actions-workflows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcomontalbano","download_url":"https://codeload.github.com/marcomontalbano/figma-plugin-run-github-actions-workflows/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249165880,"owners_count":21223343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","figma","figma-plugin","github-actions","github-workflows","trigger"],"created_at":"2024-10-01T15:43:41.888Z","updated_at":"2025-04-15T22:30:50.846Z","avatar_url":"https://github.com/marcomontalbano.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Figma Plugin - Run GitHub Actions workflows\n\nRun [GitHub Actions](https://github.com/features/actions) workflows directly within [Figma](https://www.figma.com/), using the selected page and nodes as [inputs](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs).\n\n![Demo](cover.gif)\n\n\n## Usage\n\nBegin by creating a [GitHub Actions workflow](https://docs.github.com/en/actions/using-workflows/about-workflows).\n\nConfigure your workflow to run on [`workflow_dispatch`](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch) event:\n\n```yaml\non: \n  workflow_dispatch:\n    inputs:\n      fileKey:\n        description: Figma file key\n        type: string\n        required: true\n      page:\n        description: Stringified selected page (id, name)\n        type: string\n        default: '{}'\n        required: true\n      selection:\n        description: Stringified array of the selected nodes (id, name)\n        type: string\n        default: '[]'\n        required: true\n```\n\nAs previously mentioned, the plugin triggers the workflow sending the `fileKey`, the selected `page`, and the list of selected nodes as `selection`.\n\nYou can then configure the workflow according to your needs. To get started, you can use this example [`from-figma.yaml`](.github/workflows/from-figma.yaml).\n\n\u003e[!TIP]\n\u003e You can manipulate the received inputs as needed. Refer to [this working example](.github/actions/run-github-actions-workflows-transformer).\n\n### Figma\n\nSetting up in Figma is simple. Just run [this plugin](https://www.figma.com/community/plugin/1096890502176164513/run-github-actions-workflows).\n\nEnter the `fileKey`:\n\n\u003cimg alt=\"Plugin homepage\" src=\"./plugin-home.png\" width=\"300\" /\u003e\n\nand setup a new workflow by clicking the `+` button (you'll also need a GitHub [access token](https://github.com/settings/tokens)):\n\n\u003cimg alt=\"Plugin add workflow\" src=\"./plugin-workflow.png\" width=\"300\" /\u003e\n\nFinally, select a `page` and one or more `nodes`, and then click `▶`. This will run the selected workflow, passing your selection as workflow inputs.\n\n\u003cimg alt=\"Triggered GitHub Actions workflow\" src=\"./plugin-gh.png\" /\u003e\n\n## Figma Export PDFs\n\nWhat do you think about *exporting Figma content as PDF document to an FTP Server, just by clicking a button within Figma*? Would it be cool, isn't it?\n\nCheck out this [workflow](https://github.com/marcomontalbano/figma-export-pdfs-action/blob/main/.github/workflows/from-figma.yaml) and discover how it's entirely feasible. Simply clone the workflow and setup this Figma plugin :wink:.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcomontalbano%2Ffigma-plugin-run-github-actions-workflows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcomontalbano%2Ffigma-plugin-run-github-actions-workflows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcomontalbano%2Ffigma-plugin-run-github-actions-workflows/lists"}