diff --git a/.github/workflows/dashboard-release.yml b/.github/workflows/dashboard-release.yml index 346dcd1..67007e3 100644 --- a/.github/workflows/dashboard-release.yml +++ b/.github/workflows/dashboard-release.yml @@ -4,13 +4,21 @@ on: branches: - dashboard workflow_dispatch: + inputs: + releaseType: + description: 'What kind of dashboard release is this?' + required: true + type: choice + options: + - 'major' + - 'minor' + - 'patch' env: REGISTRY: ghcr.io IMAGE_NAME: phonepe/mantis-dashboard jobs: build-and-push-image: - if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dashboard' runs-on: ubuntu-latest permissions: contents: write @@ -34,7 +42,7 @@ jobs: - name: Bump poetry version and add git tag uses: ./.github/actions/bump-version-and-git-tag with: - releaseType: 'minor' + releaseType: ${{ inputs.releaseType }} - name: Push tag changes run: |