Skip to content

Commit

Permalink
Fix up chart publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcollom committed Aug 22, 2024
1 parent ad26d9f commit 961b728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 32 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/build-helm-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/create-pull-request@v6.1.0
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
5 changes: 3 additions & 2 deletions .github/workflows/publish-helm-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Publish Chart

on:
workflow_dispatch: # Enable manual generation
pull_request:
push:
tags:
- "v*"
Expand Down Expand Up @@ -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/create-pull-request@v6.1.0
with:
token: ${{ secrets.JETSTACK_CHARTS_PAT }}
Expand Down

0 comments on commit 961b728

Please sign in to comment.