From 9e67b2a10ae826a107dbdda8cccd333b17422e35 Mon Sep 17 00:00:00 2001 From: Desu Sai Venkat <48179357+desusai7@users.noreply.github.com> Date: Tue, 28 May 2024 17:27:54 +0530 Subject: [PATCH] ci: fixed syntactic issues in release actions (#740) --- .github/actions/maven-publish/action.yml | 10 ++++------ .github/workflows/java-release.yml | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/actions/maven-publish/action.yml b/.github/actions/maven-publish/action.yml index e75cefd8..be430cdb 100644 --- a/.github/actions/maven-publish/action.yml +++ b/.github/actions/maven-publish/action.yml @@ -3,8 +3,6 @@ name: Publish release to Java inputs: java-version: required: true - -secrets: ossr-username: required: true ossr-token: @@ -35,8 +33,8 @@ runs: - name: Publish Android/Java Packages to Maven run: ./gradlew publish -PisSnapshot=false env: - MAVEN_USERNAME: ${{ secrets.ossr-username }} - MAVEN_PASSWORD: ${{ secrets.ossr-token }} - SIGNING_KEY: ${{ secrets.signing-key}} - SIGNING_PASSWORD: ${{ secrets.signing-password}} + MAVEN_USERNAME: ${{ inputs.ossr-username }} + MAVEN_PASSWORD: ${{ inputs.ossr-token }} + SIGNING_KEY: ${{ inputs.signing-key}} + SIGNING_PASSWORD: ${{ inputs.signing-password}} diff --git a/.github/workflows/java-release.yml b/.github/workflows/java-release.yml index d707a12f..bcbc4b24 100644 --- a/.github/workflows/java-release.yml +++ b/.github/workflows/java-release.yml @@ -65,9 +65,9 @@ jobs: run: exit 1 # Publish the release to Maven - - name: Publish package to Maven - uses: ./.github/actions/maven-publish - secrets: + with: + java-version: ${{ inputs.java-version }} ossr-username: ${{ secrets.ossr-username }} ossr-token: ${{ secrets.ossr-token }} signing-key: ${{ secrets.signing-key}}