Skip to content

Commit

Permalink
Testing workflow dispatch by removing if condition in build and push …
Browse files Browse the repository at this point in the history
…image
  • Loading branch information
Ncoder2 committed Jun 16, 2024
1 parent bbcfc43 commit cdbe1d8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/dashboard-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit cdbe1d8

Please sign in to comment.