You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub Actions have a trigger called workflow_dispatch that, when enabled, allows not only kicking off a run from the "Actions" tab of the GitHub UI, but ALSO allow manual trigger with POST request to GitHub API.
We could use this to allow triggering of runs from a custom menu of a Google Sheet (#4), which is something that can be done quite trivially with Google App Script language.
An example of a custom menu item doing a similar thing in another project I worked on:
Caveat:
since a GitHub access token (to kick off the GitHub sync workflow) would need to be accessible to the Google App script attached to the spreadsheet, the token would be available to anyone with edit access on the sheet. This means:
public sheet would need to be only world-readable, so that random ppl couldn't view the app script. So any changes would have to happen through comments/suggestions, OR
public sheet could be world-editable bc YOLO what's the worst that could happen if someone really dug into the app-script code (reducing permission scope of GitHub token might make risk negligible)
GitHub Actions have a trigger called
workflow_dispatch
that, when enabled, allows not only kicking off a run from the "Actions" tab of the GitHub UI, but ALSO allow manual trigger with POST request to GitHub API.We could use this to allow triggering of runs from a custom menu of a Google Sheet (#4), which is something that can be done quite trivially with Google App Script language.
An example of a custom menu item doing a similar thing in another project I worked on:
Caveat:
Tutorial for kicking off GitHub Actions from Google App Scripts: https://www.jaredwhalen.com/blog/deploy-gh-action-from-sheets
Specifically, this task would involve
workflow_dispatch
trigger to workflow configThe text was updated successfully, but these errors were encountered: