diff --git a/.github/workflows/compat-gen-upload.yml b/.github/workflows/compat-gen-upload.yml index 8ba089fc26f..f9e28a85a6d 100644 --- a/.github/workflows/compat-gen-upload.yml +++ b/.github/workflows/compat-gen-upload.yml @@ -1,6 +1,16 @@ name: Compat Fixture Upload on: + workflow_call: + inputs: + git_ref: + description: "Git ref for version detection (e.g. v0.62.0). Defaults to HEAD." + required: false + type: string + confirm_upload: + description: "Set to 'yes' to confirm upload." + required: true + type: string workflow_dispatch: inputs: git_ref: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5ccd8cee247..b2678b02788 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -110,3 +110,13 @@ jobs: ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYPASSWORD }} ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALUSERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALPASSWORD }} + + compat-upload: + uses: ./.github/workflows/compat-gen-upload.yml + with: + git_ref: ${{ github.event.release.tag_name }} + confirm_upload: "yes" + secrets: inherit + permissions: + id-token: write + contents: read