Publish dev chart (dispatch) #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish dev chart (dispatch) | |
on: | |
workflow_dispatch: | |
jobs: | |
publish: | |
name: Publish Helm chart | |
if: github.repository == 'logicalclocks/rondb-helm' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout main repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: | | |
CHART_VERSION=$(grep '^version:' Chart.yaml | awk '{print $2}') | |
echo "CHART_VERSION=$CHART_VERSION" >> $GITHUB_ENV | |
- name: Publish Helm chart | |
uses: ./.github/actions/publish_chart | |
with: | |
# Helm doesn't support just using "dev"/"latest" as a version | |
chart_version: "${{ env.CHART_VERSION }}-dev" | |
allow_overwrite: "true" | |
gh_token: ${{ secrets.GITHUB_TOKEN }} |