Skip to content

Commit

Permalink
ci: fix generate-chart-schema job
Browse files Browse the repository at this point in the history
  • Loading branch information
yorugac committed Nov 1, 2024
1 parent 402426e commit 2b65d86
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,21 @@ jobs:
run: |
make helm-schema
- name: Branch
- name: Git diff
id: git-diff
run: |
git diff --exit-code
if [ $? -eq 0 ]; then
echo "changes=false" >> $GITHUB_OUTPUT
else
echo "changes=true" >> $GITHUB_OUTPUT
fi
- name: "Commit changes and make PR"
if: steps.git-diff.changes == 'true'
run: |
git checkout -b helm/schema-update
git add charts/k6-operator/values.schema.json
git diff --cached | tee diff.file
echo "WC_DIFF=$(wc -c < diff.file)" >> "$GITHUB_OUTPUT"
- name: "Make PR"
if: ${{ steps.branch.WC_DIFF }} > 0
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
Expand All @@ -47,8 +52,6 @@ jobs:
call-update-helm-repo:
needs:
- generate-chart-schema
# permissions:
# contents: write
uses: grafana/helm-charts/.github/workflows/update-helm-repo.yaml@main
with:
charts_dir: charts
Expand Down

0 comments on commit 2b65d86

Please sign in to comment.