Skip to content

Commit

Permalink
Fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
eschleb committed Sep 9, 2024
1 parent 1d1cf31 commit 4a686be
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/actions/mvn-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Setup maven"
description: "Configures maven settings"

inputs:
mgnl_nexus_user:
description: “Username for magnolia nexus”
required: true
mgnl_nexus_pass:
description: “Password for magnolia nexus”
required: true

runs:
using: "composite"
steps:
- uses: s4u/maven-settings-action@v2
with:
servers: |
[{
"id": "magnolia.enterprise.group",
"username": "${{ inputs.mgnl_nexus_user }}",
"password": "${{ inputs.mgnl_nexus_pass }}"
}]
7 changes: 6 additions & 1 deletion .github/workflows/release-and-deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
mgnl_nexus_pass: ${{secrets.MGNL_NEXUS_PASS}}
# Install xmllint
- name: Install dependencies
run: sudo apt-get install libxml2-utils
run: sudo apt-get update && sudo apt-get install libxml2-utils
# Set git user name and email
- name: Set up Git
run: |
Expand Down Expand Up @@ -56,6 +56,11 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 17
- name: Maven setup
uses: ./.github/actions/mvn-setup
with:
mgnl_nexus_user: ${{secrets.MGNL_NEXUS_USER}}
mgnl_nexus_pass: ${{secrets.MGNL_NEXUS_PASS}}
# Run maven verify
- name: Maven verify
run: mvn verify --batch-mode
Expand Down

0 comments on commit 4a686be

Please sign in to comment.