Skip to content

Commit

Permalink
(workflow) デプロイ前にバージョンの更新種類を選択できるように
Browse files Browse the repository at this point in the history
  • Loading branch information
Npepperlinux committed Nov 17, 2024
1 parent 690c8f9 commit 8bd5056
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: デプロイ

on: [workflow_dispatch]
on:
workflow_dispatch:
inputs:
bump_version:
description: 'Item to bump version'
required: true
default: 'build'
type: choice
options:
- build
- patch
- minor
- major

permissions:
contents: write
Expand Down Expand Up @@ -59,7 +71,7 @@ jobs:
- name: Bump up version
run: |
flutter pub run cider bump build --bump-build
flutter pub run cider bump ${{ inputs.bump_version }} --bump-build
echo "BUMP_VERSION=$(flutter pub run cider version)" >> $GITHUB_ENV
- name: Commit and push pubspec.yaml
Expand Down

0 comments on commit 8bd5056

Please sign in to comment.