Skip to content

Instantly share code, notes, and snippets.

@hariombalhara
hariombalhara / github-actions.script-kit.js
Last active Aug 26, 2021
Script Kit: Github Actions
View github-actions.script-kit.js
// Menu: Github Actions
// Description: Run Github Workflow configured to run on workflow_dispatch
// Author: Hariom Balhara
// Shortcut: opt g
// Twitter: @hariom_balhara
// Format https://api.github.com/repos/{owner}/{repo}/actions/workflows
let githubWorkflowUrl = await env('WORKFLOWS_PREFIX')
// Obtain from here - https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token