WIP: Build & Release

This commit is contained in:
Michał Zieliński
2025-02-12 15:39:32 +01:00
parent 8e4312f0dd
commit b5c5bf08d2
5 changed files with 89 additions and 58 deletions

View 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;
};