From 1f57825cae8f531f3ac759565b5ad8c2e304f443 Mon Sep 17 00:00:00 2001 From: Stefan Ranoszek Date: Mon, 20 May 2024 09:33:29 +0100 Subject: [PATCH] fix:Update maven.yaml --- .github/workflows/maven.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml index 87f4ff6..aaf487b 100644 --- a/.github/workflows/maven.yaml +++ b/.github/workflows/maven.yaml @@ -11,15 +11,20 @@ on: permissions: contents: read - + packages: write + jobs: build: name: build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - + - uses: whelk-io/maven-settings-xml-action@v22 + with: + servers: '[{ "id":"dvsa-github-packages", "configuration": { "httpHeaders": { "property": { "name":"Authorization", "value":"Bearer ${{ secrets.GITHUB_TOKEN }}"} } } },{ "id":"github", "configuration": { "httpHeaders": { "property": { "name":"Authorization", "value":"Bearer ${{ secrets.GITHUB_TOKEN }}"} } } } ]' + - run: mvn -B -P github ${{ inputs.maven-goal}} - - \ No newline at end of file +