Skip to content

Commit

Permalink
fix: release helm chart only on changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Gosteli committed Feb 8, 2021
1 parent aaa49ce commit 9531fde
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,28 @@ on:
branches:
- master
jobs:
changes:
runs-on: ubuntu-latest
outputs:
chart: ${{ steps.filter.outputs.chart }}
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
filters: |
chart:
- 'chart/chaoskube/Chart.yaml'
- 'chart/chaoskube/**/*'
chart:
name: release chart
runs-on: ubuntu-latest
needs:
- changes
if: |
needs.changes.outputs.chart == 'true'
steps:
- name: Checkout master
uses: actions/checkout@v2
Expand Down

0 comments on commit 9531fde

Please sign in to comment.