Files
vercel/utils/trigger-update-workflow.js
Nathan Rajlich 64d9cef963 [publish] Trigger update workflow on "api" repo after Publish (#9791)
So that we don't need to trigger it manually and/or wait for the cronjob.
2023-04-12 06:53:46 +00:00

9 lines
229 B
JavaScript
Vendored

module.exports = async ({ github, context }) => {
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: 'api',
workflow_id: 'cron-update-build-container.yml',
ref: 'main',
});
};