Skip to content

Commit

Permalink
fix: switch to choice box for dry-run mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Regolith Linux committed Jun 1, 2024
1 parent b674d6c commit 2daa96c
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/promote-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ on:
package-name:
description: 'Package Name Filter (optional)'
dry-run-mode:
description: 'Dry-run (empty for write mode)'
default: dry-run
type: choice
description: 'Mode'
options:
- dry-run
- push-tags

jobs:
build:
Expand All @@ -26,9 +29,17 @@ jobs:
run: |
set -x
${{ github.workspace }}/.github/scripts/tag-stage.sh \
${{ github.workspace }} \
${{ github.event.inputs.stage-id }} \
${{ github.event.inputs.base-tag-name }} \
${{ github.event.inputs.package-name }} \
${{ github.event.inputs.dry-run-mode }}
if [ "${{ github.event.inputs.dry-run-mode }}" == "push-tags" ]; then
${{ github.workspace }}/.github/scripts/tag-stage.sh \
${{ github.workspace }} \
${{ github.event.inputs.stage-id }} \
${{ github.event.inputs.base-tag-name }} \
${{ github.event.inputs.package-name }}
else
${{ github.workspace }}/.github/scripts/tag-stage.sh \
${{ github.workspace }} \
${{ github.event.inputs.stage-id }} \
${{ github.event.inputs.base-tag-name }} \
${{ github.event.inputs.package-name }} \
dry-run
fi

0 comments on commit 2daa96c

Please sign in to comment.