A Coda Pack that adds the ability to fire a Github Action from any Coda Action (button press, automation, etc.).
It takes a couple pieces to get this working, but it'll totally be worth it.
- First, configure your workflow to be able to be triggered by an external event.
- Then, create a Personal Access Token (PAT).
Add a repository_dispatch
with a corresponding event_type
. You'll configure the event
on the Coda side once you install the pack. All workflows with the same event_type
can trigger from the same Coda Action!
Here's an example:
## my-workflow.yml
on:
repository_dispatch:
types: [coda-action]
-
Ensure to include the
repo
scope. -
Set the expiration to something reasonable.
a. (Pro tip: set a calendar reminder a few days in advance so you don't forget to refresh it!)
-
Store it someplace safe so you can get back to it. Github won't show it to you again after it shows it to you once!
- Install the pack: https://coda.io/packs/trigger-github-action-11770
- Create a button
- Choose the "Trigger Github Action" Pack
- Choose "Set up another account", and paste your PAT (from above) into the box.
- Configure the repository and dispatch settings
-
repo_with_owner
- should be something likeyour_github_username/name_of_your_repo
-
event
- should correspond to the values used in thetypes
element of yourrepository_dispatch
trigger above.Remember: This will trigger all workflows on the repository that have a matching
repository_dispatch
event type.