From bc5cfbef6a66446726994c35f3bb28fbd55ae60c Mon Sep 17 00:00:00 2001 From: Chase Date: Thu, 5 Sep 2024 14:04:13 -0700 Subject: [PATCH] fix: use useSonatypeLegacy from workflow.yaml (#158) --- .github/workflows/workflow-executor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow-executor.yaml b/.github/workflows/workflow-executor.yaml index 18a821c9..0576a5a0 100644 --- a/.github/workflows/workflow-executor.yaml +++ b/.github/workflows/workflow-executor.yaml @@ -367,7 +367,7 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - name: Publish to Sonatype (legacy) - if: ${{ inputs.use_sonatype_legacy == 'true' }} + if: ${{ needs.run-workflow.outputs.use_sonatype_legacy == 'true' }} uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: arguments: publish @@ -377,7 +377,7 @@ jobs: ORG_GRADLE_PROJECT_signingKey: ${{ secrets.java_gpg_secret_key }} ORG_GRADLE_PROJECT_signingPassphrase: ${{ secrets.java_gpg_passphrase }} - name: Publish to Sonatype Central - if: ${{ inputs.use_sonatype_legacy != 'true' }} + if: ${{ needs.run-workflow.outputs.use_sonatype_legacy != 'true' }} run: |- pwd ./gradlew build sonatypeCentralUpload --no-daemon