Skip to content

Commit

Permalink
Fix not to send Armeria upgrade PR to Central Dogma when minor versio…
Browse files Browse the repository at this point in the history
…n up (#5275)
  • Loading branch information
minwoox authored Oct 30, 2023
1 parent b01aad6 commit 0853c01
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/actions/post-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,20 @@ async function main(): Promise<void> {
});
console.log(`📝 https://github.com/line/armeria/releases/tag/${tag} has been updated.`)

// Trigger Central Dogma workflow to upgrade Armeria version
console.log(`⛓️ Triggering 'update-armeria-version' workflow in Central Dogma repository...`);
await octokit.rest.actions.createWorkflowDispatch({
owner: owner,
repo: 'centraldogma',
workflow_id: 'update-armeria-version.yml',
ref: 'main',
inputs: {
armeria_version: releaseVersion
},
})
console.log("⛓️ https://github.com/line/centraldogma/actions/workflows/update-armeria-version.yml has been triggered.")
if (!releaseVersion.endsWith(".0")) {
// Trigger Central Dogma workflow to upgrade Armeria version
console.log(`⛓️ Triggering 'update-armeria-version' workflow in Central Dogma repository...`);
await octokit.rest.actions.createWorkflowDispatch({
owner: owner,
repo: 'centraldogma',
workflow_id: 'update-armeria-version.yml',
ref: 'main',
inputs: {
armeria_version: releaseVersion
},
})
console.log("⛓️ https://github.com/line/centraldogma/actions/workflows/update-armeria-version.yml has been triggered.")
}
}

/**
Expand Down

0 comments on commit 0853c01

Please sign in to comment.