diff --git a/.github/workflows/deploy-artifacts.yml b/.github/workflows/deploy-artifacts.yml index c144754..1acaefe 100644 --- a/.github/workflows/deploy-artifacts.yml +++ b/.github/workflows/deploy-artifacts.yml @@ -15,6 +15,11 @@ on: run_id: description: 'Run ID of the release workflow' required: true + dry_run: + description: 'Dry run the release' + required: false + type: boolean + default: false permissions: contents: read @@ -24,7 +29,7 @@ env: PAYLOAD_VERSION: ${{ github.event.inputs.version }} PAYLOAD_REPOSITORY: ${{ github.event.inputs.github_repository }} PAYLOAD_RUN_ID: ${{ github.event.inputs.run_id }} - + DRY_RUN: ${{ github.event.inputs.dry_run || vars.DRY_RUN }} concurrency: # Group by repository and version group: ${PAYLOAD_REPOSITORY}-${PAYLOAD_VERSION} @@ -77,7 +82,7 @@ jobs: version: early-access arguments: 'deploy' env: - JRELEASER_DRY_RUN: ${{ vars.DRY_RUN }} + JRELEASER_DRY_RUN: ${{ env.DRY_RUN }} JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }} JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_PRIVATE_KEY }} JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}