From d49ea58de0f6ff0bd67fa6a9654763ca212ec76f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Sep 2023 09:33:27 +0100 Subject: [PATCH] ci: use `GITHUB_REF_NAME` to get branch for release --- scripts/update-changelog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-changelog.ts b/scripts/update-changelog.ts index 69d0a5599c..1e97581999 100644 --- a/scripts/update-changelog.ts +++ b/scripts/update-changelog.ts @@ -4,7 +4,7 @@ import { inc } from 'semver' import { generateMarkDown, loadChangelogConfig } from 'changelogen' import { determineBumpType, getLatestCommits, loadWorkspace } from './_utils' -const releaseBranch = process.env.BRANCH || 'main' +const releaseBranch = process.env.GITHUB_REF_NAME || 'main' async function main () { const workspace = await loadWorkspace(process.cwd())