-
Notifications
You must be signed in to change notification settings - Fork 17
36 lines (32 loc) · 1.15 KB
/
wizard-release-action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This Github action will create a Github release for the csm installation wizard
name: installation-wizard-release-action
# Triggers the action when a chart release has been created and deployed
on:
workflow_run:
workflows:
- pages-build-deployment
types:
- completed
jobs:
# This job will perform a helm release of the installation wizard chart if it has been updated
release-installation-wizard:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }} && ${{ github.event.release.action == 'released' }}
steps:
# Check out code
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
# Run the helm chart release command
- name: Run csm chart-releaser for container-storage-modules
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_dir: installation-wizard
skip_existing: true