Skip to content

Commit

Permalink
Configuring Maven servers inside tested action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jardo-51 committed Apr 28, 2024
1 parent 4777eab commit 2cb95e4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test-current-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,13 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- uses: s4u/[email protected]
with:
servers: '[{"id": "github", "username": "${{ github.actor }}", "password": "${{ github.token }}"}]'

- name: Run action (non-branch version)
id: run-action-non-branch-version
uses: maven-flow/manage-versions@main
with:
enforce-branch-version: true
maven-args: "-P github"
maven-servers: '[{"id": "github", "username": "${{ github.actor }}", "password": "${{ github.token }}"}]'
pom-file: "non-branch-version-pom.xml"

- name: Assert version unchanged
Expand All @@ -44,6 +41,7 @@ jobs:
with:
enforce-branch-version: true
maven-args: "-P github"
maven-servers: '[{"id": "github", "username": "${{ github.actor }}", "password": "${{ github.token }}"}]'
pom-file: "branch-version-pom.xml"

- name: Assert version changed
Expand Down

0 comments on commit 2cb95e4

Please sign in to comment.