Skip to content

Commit

Permalink
Added chart_version input to manual workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaswell-bcgov committed Jun 20, 2024
1 parent c07680c commit 055a93d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/chartReleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ on:
release:
types:
- published
pull_request:
paths:
- helm/Chart.yaml
workflow_dispatch:
inputs:
chart_version:
description: 'The chart version to create. Must be a valid semver string and should indicate that it is not a release chart version (eg. 5.1.2-pr36).'
required: true

jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
env:
CHART_VERSION: "${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || null }}"
CHART_VERSION: "${{ github.event_name == 'workflow_dispatch' && github.event.inputs.chart_version || null }}"
permissions:
contents: write
runs-on: ubuntu-latest
Expand Down

0 comments on commit 055a93d

Please sign in to comment.