Skip to content

Commit

Permalink
ci: update dry run string (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 authored Mar 14, 2024
1 parent cf63a68 commit 21c7f09
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:
description: 'Do a dry run to preview instead of a real release'
type: choice
required: true
default: 'true'
default: 'dry-run'
options:
- 'true'
- 'false'
- 'dry-run'
- 'release'

jobs:
authorize:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
run: flutter test

- name: Semantic Release --dry-run
if: ${{ github.event.inputs.dryRun == 'true'}}
if: ${{ github.event.inputs.dryRun == 'dry-run'}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: amplitude-sdk-bot
Expand All @@ -71,7 +71,7 @@ jobs:
semantic-release --dry-run
- name: Semantic Release
if: ${{ github.event.inputs.dryRun == 'false'}}
if: ${{ github.event.inputs.dryRun == 'release'}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: amplitude-sdk-bot
Expand Down

0 comments on commit 21c7f09

Please sign in to comment.