diff --git a/.github/workflows/title-formatter.yml b/.github/workflows/title-formatter.yml index 5b05b1d0..5e872a4c 100644 --- a/.github/workflows/title-formatter.yml +++ b/.github/workflows/title-formatter.yml @@ -53,11 +53,6 @@ jobs: if (isBreaking) newTitle += '!'; newTitle += `: ${description}`; - if (rawTitle === newTitle) { - console.log("Title is already correctly formatted. Skipping update."); - return; - } - const displayTitle = `${newTitle} (#${pr_number})`; if (displayTitle.length > 72) { core.setFailed( @@ -66,6 +61,11 @@ jobs: return; } + if (rawTitle === newTitle) { + console.log("Title is already correctly formatted. Skipping update."); + return; + } + await github.rest.pulls.update({ owner, repo,