Skip to content

Commit cae68fe

Browse files
authored
update cr to v1.7.0 (#220)
Signed-off-by: cpanato <[email protected]>
1 parent d1e09fd commit cae68fe

File tree

4 files changed

+27
-28
lines changed

4 files changed

+27
-28
lines changed

.github/workflows/test-action.yml

+20-21
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,16 @@ name: test-chart-releaser
33
on:
44
pull_request:
55

6+
permissions: {}
7+
68
jobs:
9+
710
test_chart_releaser_install_action:
811
runs-on: ubuntu-latest
12+
913
permissions:
10-
actions: none
11-
checks: none
12-
contents: none
13-
deployments: none
14-
issues: none
15-
packages: none
16-
pull-requests: none
17-
repository-projects: none
18-
security-events: none
19-
statuses: none
14+
contents: read
15+
2016
name: Install chart-releaser and test presence in path
2117
steps:
2218
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
@@ -27,7 +23,17 @@ jobs:
2723
env:
2824
CR_TOKEN: "FAKE_SECRETS"
2925
- name: Check install!
30-
run: cr version
26+
run: |
27+
cr version
28+
CR_VERSION_OUTPUT=$(cr version 2>&1 /dev/null)
29+
ACTUAL_VERSION=$(echo "$CR_VERSION_OUTPUT" | grep GitVersion | rev | cut -d ' ' -f1 | rev)
30+
if [[ $ACTUAL_VERSION != 'v1.7.0' ]]; then
31+
echo 'should be v1.7.0'
32+
exit 1
33+
else
34+
exit 0
35+
fi
36+
shell: bash
3137
- name: Check root directory
3238
run: |
3339
if ! git diff --stat --exit-code; then
@@ -37,17 +43,10 @@ jobs:
3743
3844
test_chart_releaser_action:
3945
runs-on: ubuntu-latest
46+
4047
permissions:
41-
actions: none
42-
checks: none
43-
contents: none
44-
deployments: none
45-
issues: none
46-
packages: none
47-
pull-requests: none
48-
repository-projects: none
49-
security-events: none
50-
statuses: none
48+
contents: read
49+
5150
name: Install chart-releaser and run it
5251
steps:
5352
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A GitHub action to turn a GitHub project into a self-hosted Helm chart repo, usi
1515

1616
### Inputs
1717

18-
- `version`: The chart-releaser version to use (default: v1.6.0)
18+
- `version`: The chart-releaser version to use (default: v1.7.0)
1919
- `config`: Optional config file for chart-releaser. For more information on the config file, see the [documentation](https://github.com/helm/chart-releaser#config-file)
2020
- `charts_dir`: The charts directory
2121
- `skip_packaging`: This option, when populated, will skip the packaging step. This allows you to do more advanced packaging of your charts (for example, with the `helm package` command) before this action runs. This action will only handle the indexing and publishing steps.
@@ -57,7 +57,7 @@ jobs:
5757
runs-on: ubuntu-latest
5858
steps:
5959
- name: Checkout
60-
uses: actions/checkout@v3
60+
uses: actions/checkout@v4
6161
with:
6262
fetch-depth: 0
6363

@@ -72,7 +72,7 @@ jobs:
7272
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
7373

7474
- name: Run chart-releaser
75-
uses: helm/chart-releaser-action@v1.6.0
75+
uses: helm/chart-releaser-action@v1.7.0
7676
env:
7777
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
7878
```
@@ -86,7 +86,7 @@ It does this – during every push to `main` – by checking each chart in your
8686

8787
```yaml
8888
- name: Run chart-releaser
89-
uses: helm/chart-releaser-action@v1.6.0
89+
uses: helm/chart-releaser-action@v1.7.0
9090
with:
9191
charts_dir: charts
9292
config: cr.yaml

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ branding:
2020
icon: anchor
2121
inputs:
2222
version:
23-
description: "The chart-releaser version to use (default: v1.6.1)"
23+
description: "The chart-releaser version to use (default: v1.7.0)"
2424
required: false
25-
default: v1.6.1
25+
default: v1.7.0
2626
config:
2727
description: "The relative path to the chart-releaser config file"
2828
required: false

cr.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -o errexit
1818
set -o nounset
1919
set -o pipefail
2020

21-
DEFAULT_CHART_RELEASER_VERSION=v1.6.1
21+
DEFAULT_CHART_RELEASER_VERSION=v1.7.0
2222

2323
show_help() {
2424
cat <<EOF

0 commit comments

Comments
 (0)