MCPcopy Create free account
hub / github.com/ampproject/amphtml / trigger_

Function trigger_

build-system/release-workflows/trigger-promote.js:28–42  ·  view source on GitHub ↗

* Trigger promote workflow * @return {Promise}

()

Source from the content-addressed store, hash-verified

26 * @return {Promise}
27 */
28async function trigger_() {
29 const ampVersion = readFileSync('/tmp/restored-workspace/AMP_VERSION', 'utf8')
30 .toString()
31 .trim();
32
33 const octokit = new Octokit({auth: process.env.GITHUB_TOKEN});
34 const inputs = {
35 'amp-version': ampVersion,
36 'auto-merge': 'true',
37 };
38 await octokit.rest.actions.createWorkflowDispatch({
39 ...cdnConfigurationParams,
40 inputs,
41 });
42}
43
44runReleaseJob(jobName, async () => {
45 await trigger_();

Callers 1

trigger-promote.jsFile · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected