From c596cf5ba43fc5e3177571fa5a24e488005fc5d1 Mon Sep 17 00:00:00 2001 From: Sai Venkat Desu Date: Tue, 28 May 2024 17:14:58 +0530 Subject: [PATCH] ci: fixed syntactic issues in release actions --- .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}}