Skip to content

Commit 7a0c9d2

Browse files
committed
bugfix: properly parse GITHUB_BASE_REF and remove quotes
Signed-off-by: Maximilian Bösing <[email protected]>
1 parent c741f71 commit 7a0c9d2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/config/app.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,12 @@ export default function createConfig(
467467

468468
configurationFromFile.extensions?.forEach((extension) => phpExtensions = phpExtensions.add(extension));
469469

470+
let baseReference: string|null = (process.env.GITHUB_BASE_REF ?? '').replaceAll('"', '');
471+
472+
if (baseReference === '') {
473+
baseReference = null;
474+
}
475+
470476
return {
471477
codeChecks : requirements.codeChecks,
472478
docLinting : requirements.docLinting,
@@ -480,7 +486,7 @@ export default function createConfig(
480486
ignorePhpPlatformRequirements : configurationFromFile.ignore_php_platform_requirements ?? {},
481487
additionalComposerArguments : [ ... new Set(configurationFromFile.additional_composer_arguments ?? []) ],
482488
backwardCompatibilityCheck : configurationFromFile.backwardCompatibilityCheck ?? false,
483-
baseReference : process.env.GITHUB_BASE_REF ?? null,
489+
baseReference : baseReference,
484490
};
485491
}
486492

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
GITHUB_BASE_REF=1111222233334444aaaabbbbccccdddd
1+
GITHUB_BASE_REF="1111222233334444aaaabbbbccccdddd"

0 commit comments

Comments
 (0)