-
Notifications
You must be signed in to change notification settings - Fork 14
50 lines (43 loc) · 1.34 KB
/
set-helm-version.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Test set-helm-version
on:
push:
paths:
- .github/workflows/set-helm-version.yaml
- set-helm-version/**
pull_request:
paths:
- .github/workflows/set-helm-version.yaml
- set-helm-version/**
# Declare default permissions as read only.
permissions: read-all
jobs:
set-helm-version:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: set-helm-version/Dockerfile
- name: set-helm-version
uses: ./set-helm-version
with:
path: set-helm-version/_test
chart_version: v1.5.0
app_version: v1.6.0
- name: Check that the chart was modified as expected
run: |
if grep -Fxq "version: v1.5.0" set-helm-version/_test/Chart.yaml
then
echo "Found expected chart version"
else
echo "Did not find expected chart version!"
exit 1
fi
if grep -Fxq "appVersion: v1.6.0" set-helm-version/_test/Chart.yaml
then
echo "Found expected app version"
else
echo "Did not find expected app version!"
exit 1
fi