-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad26d9f
commit 961b728
Showing
2 changed files
with
3 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,33 +72,3 @@ jobs: | |
|
||
# Ensure that the chart's default values produce manifests | ||
- run: helm template test . | ||
|
||
- if: ${{inputs.publish}} | ||
name: checkout jetstack-charts | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.JETSTACK_CHARTS_PAT }} | ||
repository: jetstack/jetstack-charts | ||
ref: main | ||
path: jetstack-charts | ||
|
||
- if: ${{inputs.publish}} | ||
name: Package helm chart | ||
working-directory: ./${{inputs.chart-name}}/chart/ | ||
run: | | ||
helm package . -d jetstack-charts/charts/ | ||
- name: Creating PR | ||
if: ${{inputs.publish}} | ||
uses: peter-evans/[email protected] | ||
with: | ||
token: ${{ secrets.JETSTACK_CHARTS_PAT }} | ||
title: "Release ${{inputs.chart-name}} ${{github.ref_name }}" | ||
commit-message: "Release ${{inputs.chart-name}} ${{github.ref_name }}" | ||
branch: ${{inputs.chart-name}}/${{github.ref_name}} | ||
path: jetstack-charts | ||
add-paths: charts/*.tgz | ||
delete-branch: true | ||
signoff: true | ||
base: main | ||
draft: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ name: Publish Chart | |
|
||
on: | ||
workflow_dispatch: # Enable manual generation | ||
pull_request: | ||
push: | ||
tags: | ||
- "v*" | ||
|
@@ -86,7 +85,9 @@ jobs: | |
run: | | ||
helm package . -d ${{github.workspace}}/jetstack-charts/charts/ | ||
- name: Creating PR | ||
# Only create the PR when we're triggered by a tag | ||
- if: contains(github.ref, 'refs/tags/') | ||
name: Creating PR | ||
uses: peter-evans/[email protected] | ||
with: | ||
token: ${{ secrets.JETSTACK_CHARTS_PAT }} | ||
|