From 9f45e6a526234edb815e7e47680acd9860f65846 Mon Sep 17 00:00:00 2001 From: Mark Patton Date: Tue, 12 Dec 2023 10:31:58 -0500 Subject: [PATCH] Adjust env variables --- .github/actions/maven-release/action.yml | 6 +----- .github/workflows/release.yml | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/maven-release/action.yml b/.github/actions/maven-release/action.yml index 1674c219..e6200c49 100644 --- a/.github/actions/maven-release/action.yml +++ b/.github/actions/maven-release/action.yml @@ -35,13 +35,9 @@ runs: exit "$code" fi fi - env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - name: Wait for Sonatype artifact - shell: bash + shell: bash run: | echo "Waiting for $ARTIFACT $RELEASE to be released." diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b798510c..4b360983 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,6 +55,10 @@ jobs: - name: Release Java modules uses: ./.github/actions/maven-release + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - name: Set the next dev version and commit the change run: |