mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 12:57:46 +00:00
[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.
This commit is contained in:
8
utils/trigger-update-workflow.js
vendored
Normal file
8
utils/trigger-update-workflow.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
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',
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user