ci: Only run chart-releaser after README is updated

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-02-04 15:05:53 +01:00
parent 574f6529c5
commit a2e26d5a0f
No known key found for this signature in database
GPG Key ID: BC5E2BD907F9A8EC

View File

@ -88,19 +88,19 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v4 uses: stefanzweifel/git-auto-commit-action@v4
with: with:
file_pattern: charts/**/ file_pattern: charts/**/
commit_message: Auto-update chart README commit_message: "chore: Auto-update chart README"
commit_user_name: k8s-at-home[bot] commit_user_name: k8s-at-home[bot]
commit_user_email: k8s-at-home[bot]@users.noreply.github.com commit_user_email: k8s-at-home[bot]@users.noreply.github.com
commit_author: k8s-at-home[bot] <k8s-at-home[bot]@users.noreply.github.com> commit_author: k8s-at-home[bot] <k8s-at-home[bot]@users.noreply.github.com>
- name: Configure Git - name: Configure Git
if: ${{ steps.create-commit.outputs.changes_detected || 'unknown' }}" == "false" if: steps.create-commit.outputs.changes_detected == 'false'
run: | run: |
git config user.name "k8s-at-home[bot]" git config user.name "k8s-at-home[bot]"
git config user.email "k8s-at-home[bot]@users.noreply.github.com" git config user.email "k8s-at-home[bot]@users.noreply.github.com"
- name: Run chart-releaser - name: Run chart-releaser
if: ${{ steps.create-commit.outputs.changes_detected || 'unknown' }}" == "false" if: steps.create-commit.outputs.changes_detected == 'false'
uses: helm/chart-releaser-action@v1.2.1 uses: helm/chart-releaser-action@v1.2.1
with: with:
charts_dir: charts/* charts_dir: charts/*