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 6358e3d commit b3ce758
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 @@ -22,19 +22,22 @@ jobs:
run: |
make helm-schema
- name: Branch
- name: Git diff
id: git-diff
run: |
git diff --exit-code
if [ $? -eq 0 ]; then
echo "::set-output name=changes::false"
else
echo "::set-output name=changes::true"
fi
- name: "Commit changes and make PR"
if: steps.git-diff.outputs.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"
wc -c < diff.file
cat diff.file
- name: "Make PR"
if: ${{ steps.branch.WC_DIFF }} > 0
run: |
echo "diff ${{ steps.branch.WC_DIFF }}"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
Expand Down

0 comments on commit b3ce758

Please sign in to comment.