Skip to content

Commit

Permalink
Fix DRY_RUN var in the release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro committed Nov 10, 2024
1 parent a027bff commit e272409
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
type: string
description: "Version number for v2 docs, in #.#.# format"

dry_run:
required: true
type: boolean
description: Do a dry run.

jobs:
prepare-release:
if: ${{ github.repository == 'jaegertracing/documentation' }}
Expand All @@ -33,6 +38,7 @@ jobs:
git config user.email "[email protected]"
# git config credential.helper "store --file=.git/credentials"
# echo "https://${{ secrets.JAEGERTRACINGBOT_GITHUB_TOKEN }}" > .git/credentials
export DRY_RUN=${{ inputs.dry_run }}
./scripts/release.sh ${{ inputs.version_v1 }} ${{ inputs.version_v2 }}
- name: GH CLI create PR
Expand Down
2 changes: 2 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

set -euf -o errexit -o pipefail

DRY_RUN=${DRY_RUN:-false}

print_usage() {
echo "Usage: $0 <version_v1> <version_v2>"
echo " Both versions must be in #.#.# format (major, minor, patch)"
Expand Down

0 comments on commit e272409

Please sign in to comment.