We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fde8ab commit 47f1b3bCopy full SHA for 47f1b3b
.github/workflows/chart-publish.yml
@@ -2,8 +2,11 @@ name: Publish Helm Chart to GHCR
2
3
on:
4
release:
5
- types:
6
- - created
+ types: [published]
+ workflow_dispatch:
7
+ inputs:
8
+ tag_name:
9
+ required: true
10
11
jobs:
12
@@ -18,7 +21,11 @@ jobs:
18
21
- name: Set Name and Version
19
22
run: |
20
23
CHART_NAME="osrd"
- CHART_VERSION="${{ github.event.release.tag_name }}"
24
+ if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
25
+ CHART_VERSION="${{ github.event.inputs.tag_name }}"
26
+ else
27
+ CHART_VERSION="${{ github.event.release.tag_name }}"
28
+ fi
29
echo "CHART_NAME=$CHART_NAME" >> $GITHUB_ENV
30
echo "CHART_VERSION=$CHART_VERSION" >> $GITHUB_ENV
31
sed -i "s/NAME_REPLACE_ME/$CHART_NAME/" ./chart/Chart.yaml
0 commit comments