Skip to content

Commit

Permalink
update cr to v1.7.0 (#220)
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato authored Jan 20, 2025
1 parent d1e09fd commit cae68fe
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 28 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,16 @@ name: test-chart-releaser
on:
pull_request:

permissions: {}

jobs:

test_chart_releaser_install_action:
runs-on: ubuntu-latest

permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
contents: read

name: Install chart-releaser and test presence in path
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand All @@ -27,7 +23,17 @@ jobs:
env:
CR_TOKEN: "FAKE_SECRETS"
- name: Check install!
run: cr version
run: |
cr version
CR_VERSION_OUTPUT=$(cr version 2>&1 /dev/null)
ACTUAL_VERSION=$(echo "$CR_VERSION_OUTPUT" | grep GitVersion | rev | cut -d ' ' -f1 | rev)
if [[ $ACTUAL_VERSION != 'v1.7.0' ]]; then
echo 'should be v1.7.0'
exit 1
else
exit 0
fi
shell: bash
- name: Check root directory
run: |
if ! git diff --stat --exit-code; then
Expand All @@ -37,17 +43,10 @@ jobs:
test_chart_releaser_action:
runs-on: ubuntu-latest

permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
contents: read

name: Install chart-releaser and run it
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A GitHub action to turn a GitHub project into a self-hosted Helm chart repo, usi

### Inputs

- `version`: The chart-releaser version to use (default: v1.6.0)
- `version`: The chart-releaser version to use (default: v1.7.0)
- `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)
- `charts_dir`: The charts directory
- `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.
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -72,7 +72,7 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

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

```yaml
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
uses: helm/chart-releaser-action@v1.7.0
with:
charts_dir: charts
config: cr.yaml
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ branding:
icon: anchor
inputs:
version:
description: "The chart-releaser version to use (default: v1.6.1)"
description: "The chart-releaser version to use (default: v1.7.0)"
required: false
default: v1.6.1
default: v1.7.0
config:
description: "The relative path to the chart-releaser config file"
required: false
Expand Down
2 changes: 1 addition & 1 deletion cr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -o errexit
set -o nounset
set -o pipefail

DEFAULT_CHART_RELEASER_VERSION=v1.6.1
DEFAULT_CHART_RELEASER_VERSION=v1.7.0

show_help() {
cat <<EOF
Expand Down

0 comments on commit cae68fe

Please sign in to comment.