Skip to content

Commit 3d466c7

Browse files
authored
Update chart-workflow.yaml (#19)
* Update chart-workflow.yaml * Bumped Chart Version * Patched Workflow to run steps only if branch is main
1 parent b2acaba commit 3d466c7

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/chart-workflow.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,19 @@ jobs:
1515

1616
- name: "Set Up Helm"
1717
uses: azure/setup-helm@v3.3
18+
if: github.ref != 'refs/heads/main'
1819
with:
1920
version: v3.4.1
2021

2122
- name: "Set Up Python"
2223
uses: actions/setup-python@v4.2.0
24+
if: github.ref != 'refs/heads/main'
2325
with:
2426
python-version: 3.9
2527

2628
- name: "Set up chart-testing"
2729
uses: helm/chart-testing-action@v2.3.0
30+
if: github.ref != 'refs/heads/main'
2831
with:
2932
version: v3.3.0
3033

@@ -33,9 +36,11 @@ jobs:
3336
env:
3437
SECRET_VALUES: ${{ secrets.FOUNDRY_SECRET_VALUES }}
3538
run: echo "$SECRET_VALUES" | base64 -d > ./charts/foundry-vtt/ci/test-values.yaml
39+
if: github.ref != 'refs/heads/main'
3640

3741
- name: "Run chart-testing (list-changed)"
3842
id: list-changed
43+
if: github.ref != 'refs/heads/main'
3944
run: |
4045
changed=$(ct list-changed --config ct.yaml)
4146
if [[ -n "$changed" ]]; then
@@ -44,19 +49,20 @@ jobs:
4449
4550
- name: "Run chart-testing (lint)"
4651
run: ct lint --config ct.yaml
47-
if: steps.list-changed.outputs.changed == 'true'
52+
if: steps.list-changed.outputs.changed == 'true' && github.ref != 'refs/heads/main'
4853

4954
- name: Create kind cluster
5055
uses: helm/kind-action@v1.4.0
51-
if: steps.list-changed.outputs.changed == 'true'
56+
if: steps.list-changed.outputs.changed == 'true' && github.ref != 'refs/heads/main'
5257

5358
- name: Run chart-testing (install)
5459
run: ct install --config ct.yaml
55-
if: steps.list-changed.outputs.changed == 'true'
60+
if: steps.list-changed.outputs.changed == 'true' && github.ref != 'refs/heads/main'
5661

5762
- name: Get Branch name
5863
id: branch-name
5964
uses: tj-actions/branch-names@v6
65+
if: github.ref != 'refs/heads/main'
6066

6167
release_on_nexus:
6268
name: Release Chart on Nexus

charts/foundry-vtt/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: foundry-vtt
33
description: Foundry Virtual Tabletop
44
type: application
5-
version: 0.1.0
5+
version: 0.1.1
66
appVersion: "v10.288"
77
keywords:
88
- game

0 commit comments

Comments
 (0)