From 22fec7f281f6c5e7806190d525b0a80fb5832d9f Mon Sep 17 00:00:00 2001 From: Andreas Hufler Date: Tue, 10 Sep 2024 12:28:36 +0200 Subject: [PATCH 1/3] fix workflow --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3ccc8f6..de73bac 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,7 @@ jobs: run: sed -i 's|BUILD-SNAPSHOT|${{ github.event.inputs.version }}|g' pom.xml - name: Publish package - run: mvn --batch-mode deploy + run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 103daf4d489398772c89a5e63d00dba37f1d91d0 Mon Sep 17 00:00:00 2001 From: Andreas Hufler Date: Tue, 10 Sep 2024 12:32:41 +0200 Subject: [PATCH 2/3] fix workflow --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index de73bac..9cc4c11 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,7 +26,8 @@ jobs: - name: Publish package run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode deploy env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_USER_NAME: ${{ github.actor }} + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} tag: timeout-minutes: 5 From 5084743f21bb4f9c637b3bc91bc227cce751d997 Mon Sep 17 00:00:00 2001 From: Andreas Hufler Date: Tue, 10 Sep 2024 12:38:42 +0200 Subject: [PATCH 3/3] fix workflow --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9cc4c11..ec9a169 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: aboutbits/github-actions-java/setup-and-install@v3 + - uses: aboutbits/github-actions-java/setup@v3 - name: Set Version run: sed -i 's|BUILD-SNAPSHOT|${{ github.event.inputs.version }}|g' pom.xml