A button to trigger a GitHub Actions workflow.
From the extensions details page, click "Extension Options" to set the user, repo, worfklow id, and token.
Then click the extension icon to trigger the workflow.
Currently requires the workflow to accept a specific input for the source URL, or else the REST call will fail with "unknown inputs" (HTTP error code 422).
name: Echo URL
permissions:
contents: write
on:
workflow_dispatch:
inputs:
url:
description: 'Echo URL'
jobs:
echo_url:
runs-on: ubuntu-latest
steps:
- name: Echo URL
run: echo "${{ github.event.inputs.url }}"
Not going to publish this thing, just load it unpacked in developer mode.