Skip to content

Commit

Permalink
Fix nexus-url output
Browse files Browse the repository at this point in the history
  • Loading branch information
ppkarwasz committed Oct 17, 2024
1 parent 0705c03 commit 140874a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/deploy-snapshot-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ on:
project-version:
description: The version of the project
value: ${{ jobs.deploy.outputs.project-version }}
# Constant output for similarity with `deploy-release-reusable`
nexus-url:
description: The URL of the Nexus repository used
value: ${{ jobs.deploy.outputs.nexus-url }}
value: https://repository.apache.org/content/repositories/snapshots
secrets:
NEXUS_USERNAME:
description: Nexus snapshot repository username for deploying artifacts
Expand All @@ -44,7 +45,6 @@ jobs:
runs-on: ubuntu-latest
outputs:
project-version: ${{ steps.version.outputs.project-version }}
nexus-url: ${{ steps.nexus.outputs.nexus-url }}
steps:

- name: Checkout repository
Expand Down Expand Up @@ -74,7 +74,6 @@ jobs:
echo "project-version=$PROJECT_VERSION" >> $GITHUB_OUTPUT
- name: Upload to Nexus
id: nexus
shell: bash
env:
# `NEXUS_USERNAME` and `NEXUS_PASSWORD` are used in `~/.m2/settings.xml` created by `setup-java` action
Expand All @@ -85,5 +84,3 @@ jobs:
--show-version --batch-mode --errors --no-transfer-progress \
-P deploy
export NEXUS_URL=$(awk '/^(stagingRepository.url)/ { gsub(/(^.+=|\\)/, ""); print $1 }' target/nexus-staging/staging/*.properties)
# Export repository URL to calling workflow
echo "nexus-url=$NEXUS_URL" >> $GITHUB_OUTPUT

0 comments on commit 140874a

Please sign in to comment.