-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helm: fix tolerations schema definition
- Loading branch information
Showing
3 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,23 +21,28 @@ jobs: | |
run: | | ||
make helm-schema | ||
- name: Configure Git | ||
- name: Branch | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
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: Commit and push changes | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
- name: "Make PR" | ||
if: ${{ steps.branch.WC_DIFF }} > 0 | ||
run: | | ||
git add charts/k6-operator/values.schema.json | ||
if git diff-index --quiet HEAD; then | ||
echo "No updates to helm values schema" | ||
else | ||
git commit -m "gen schema json" | ||
git push origin HEAD:helm-schema | ||
fi | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git commit -m "auto: generate schema json" | ||
git push -u origin helm/schema-update | ||
gh pr create --title "Helm schema update" -B main -H helm/schema-update --body "Auto-generated by Github Workflow" | ||
# We're failing here, so that maintainer can review the PR and merge it. Then Helm release should be re-run. | ||
echo "Review the PR with schema update and re-run Helm release." | ||
exit 1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
call-update-helm-repo: | ||
needs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters