Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ jobs:
const prs = data?.repository?.object?.associatedPullRequests?.nodes ?? [];
if (prs.length === 0) {
core.warning(`No PR found for commit ${sha}`);
core.setOutput('release_type', '');
core.setOutput('version_type', 'minor');
return;
}

const labels = prs[0].labels.nodes.map(n => n.name);
const matchedType = Object.entries(labelMap).find(([label]) => labels.includes(label))?.[1] || '';

core.info(`Matched release type: ${matchedType || 'minor'}`);
core.setOutput('release_type', matchedType);
core.setOutput('version_type', matchedType);

- name: Calculate new version
id: new_version
Expand Down