mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 18:06:45 +00:00
resolve comments
This commit is contained in:
parent
f02cd997d9
commit
87febe147a
4 changed files with 12 additions and 4 deletions
7
.github/workflows/e2e-publishing.yml
vendored
7
.github/workflows/e2e-publishing.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
branches:
|
||||
- main
|
||||
- releases/*
|
||||
- v2-preview
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
pull_request:
|
||||
|
@ -29,7 +30,8 @@ jobs:
|
|||
server-username: MAVEN_USERNAME
|
||||
server-password: MAVEN_CENTRAL_TOKEN
|
||||
gpg-passphrase: MAVEN_GPG_PASSPHRASE
|
||||
- run: |
|
||||
- name: Validate settings.xml
|
||||
run: |
|
||||
$homePath = $env:USERPROFILE
|
||||
if (-not $homePath) {
|
||||
$homePath = $env:HOME
|
||||
|
@ -68,7 +70,8 @@ jobs:
|
|||
server-password: MAVEN_CENTRAL_TOKEN
|
||||
gpg-passphrase: MAVEN_GPG_PASSPHRASE
|
||||
settings-path: ${{ runner.temp }}
|
||||
- run: |
|
||||
- name: Validate settings.xml location
|
||||
run: |
|
||||
$path = Join-Path $env:RUNNER_TEMP "settings.xml"
|
||||
if (-not (Test-Path $path)) {
|
||||
throw "settings.xml file is not found in expected location"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue