mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 17:36:45 +00:00
print debug
This commit is contained in:
parent
4d5942db51
commit
b091e7652f
3 changed files with 5 additions and 3 deletions
4
.github/workflows/e2e-publishing.yml
vendored
4
.github/workflows/e2e-publishing.yml
vendored
|
@ -83,7 +83,7 @@ jobs:
|
||||||
Get-Content $xmlPath | ForEach-Object { Write-Host $_ }
|
Get-Content $xmlPath | ForEach-Object { Write-Host $_ }
|
||||||
|
|
||||||
$xml = Get-Content $xmlPath -Raw
|
$xml = Get-Content $xmlPath -Raw
|
||||||
if ($raw -notlike 'maven') {
|
if ($raw -notlike '*maven*') {
|
||||||
throw "settings.xml file is not overwritten"
|
throw "settings.xml file is not overwritten"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,6 +118,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
$xmlPath = Join-Path $HOME ".m2" "settings.xml"
|
$xmlPath = Join-Path $HOME ".m2" "settings.xml"
|
||||||
$content = Get-Content -Path $xmlPath -Raw
|
$content = Get-Content -Path $xmlPath -Raw
|
||||||
|
Write-Host $content
|
||||||
|
|
||||||
if ($content -ne "Fake_XML") {
|
if ($content -ne "Fake_XML") {
|
||||||
throw "settings.xml file was overwritten but it should not be"
|
throw "settings.xml file was overwritten but it should not be"
|
||||||
}
|
}
|
||||||
|
|
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -13341,7 +13341,7 @@ function write(directory, settings, overwriteSettings) {
|
||||||
core.info(`Writing to ${location}`);
|
core.info(`Writing to ${location}`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core.info(`Skipping generation '${location}' - it already exists and overwriting is not required`);
|
core.info(`Skipping generation ${location} because file already exists and overwriting is not required`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return fs.writeFileSync(location, settings, {
|
return fs.writeFileSync(location, settings, {
|
||||||
|
|
|
@ -114,7 +114,7 @@ async function write(directory: string, settings: string, overwriteSettings: boo
|
||||||
core.info(`Writing to ${location}`);
|
core.info(`Writing to ${location}`);
|
||||||
} else {
|
} else {
|
||||||
core.info(
|
core.info(
|
||||||
`Skipping generation '${location}' - it already exists and overwriting is not required`
|
`Skipping generation ${location} because file already exists and overwriting is not required`
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue