Skip to content

Commit

Permalink
Support dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Sep 23, 2024
1 parent 57aebdc commit e015199
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deploy-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit e015199

Please sign in to comment.