pull/299/merge
Aaron Haaf 2025-10-28 20:41:46 +00:00 committed by GitHub
commit ba00deb998
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 2 deletions

3
dist/index.js vendored
View File

@ -352,6 +352,7 @@ class ImageEnvironmentFactory {
{ name: 'SCOPED_REGISTRY_URL', value: parameters.scopedRegistryUrl },
{ name: 'REGISTRY_SCOPES', value: parameters.registryScopes },
{ name: 'PRIVATE_REGISTRY_TOKEN', value: process.env.UPM_REGISTRY_TOKEN },
{ name: 'PRIVATE_REGISTRY_USER', value: process.env.UPM_REGISTRY_USER },
{ name: 'GIT_PRIVATE_TOKEN', value: parameters.gitPrivateToken },
{ name: 'VERSION', value: parameters.buildVersion },
{ name: 'CUSTOM_PARAMETERS', value: parameters.customParameters },
@ -1016,7 +1017,7 @@ const ResultsCheck = {
core.info(`Processing file ${filepath}...`);
try {
const content = fs.readFileSync(path_1.default.join(artifactsPath, filepath), 'utf8');
if (!content.includes('<test-results') && !content.includes('<test-run')) {
if (!content.includes('<test-run')) {
// noinspection ExceptionCaughtLocallyJS
throw new Error('File does not appear to be a NUnit XML file');
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -53,6 +53,13 @@ if [ -n "$PRIVATE_REGISTRY_TOKEN" ]; then
token = "$PRIVATE_REGISTRY_TOKEN"
alwaysAuth = true
EOF
# Some npm repositories (Azure Devops) require a user to be configred
# even if it isn't a valid one.
if [ -n "$PRIVATE_REGISTRY_USER" ]; then
cat >> "$UPM_CONFIG_TOML_PATH" <<EOF
user = "$PRIVATE_REGISTRY_USER"
EOF
fi
fi
#

View File

@ -41,6 +41,7 @@ class ImageEnvironmentFactory {
{ name: 'SCOPED_REGISTRY_URL', value: parameters.scopedRegistryUrl },
{ name: 'REGISTRY_SCOPES', value: parameters.registryScopes },
{ name: 'PRIVATE_REGISTRY_TOKEN', value: process.env.UPM_REGISTRY_TOKEN },
{ name: 'PRIVATE_REGISTRY_USER', value: process.env.UPM_REGISTRY_USER },
{ name: 'GIT_PRIVATE_TOKEN', value: parameters.gitPrivateToken },
{ name: 'VERSION', value: parameters.buildVersion },
{ name: 'CUSTOM_PARAMETERS', value: parameters.customParameters },