WIP: Build & Release
This commit is contained in:
11
.github/workflows/buildScripts/getLastBuildId.js
vendored
Normal file
11
.github/workflows/buildScripts/getLastBuildId.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
module.exports = async ({ github, context }) => {
|
||||
const { data: runs } = await github.rest.actions.listWorkflowRuns({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
workflow_id: "build.yml",
|
||||
branch: "main",
|
||||
status: "success",
|
||||
per_page: 1,
|
||||
});
|
||||
return runs.workflow_runs[0].id;
|
||||
};
|
||||
Reference in New Issue
Block a user