-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(update-schemas): empty changes alters changelog
- Loading branch information
Showing
4 changed files
with
89 additions
and
22 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,9 +21,7 @@ jobs: | |
with: | ||
go-version-file: go.mod | ||
- run: go install golang.org/x/tools/cmd/goimports@latest | ||
- uses: arduino/setup-task@v2 | ||
- id: update | ||
run: make schemas-update | ||
- run: make update-schemas | ||
- id: date | ||
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | ||
- id: changes | ||
|
@@ -33,16 +31,16 @@ jobs: | |
with: | ||
author: GitHub <[email protected]> | ||
body-path: changes.out | ||
branch: update/${{ steps.date.outputs.date }}-${{ github.run_id }} | ||
commit-message: "chore(update): update schemas (${{ steps.date.outputs.date }})" | ||
title: "chore(update): update schemas (${{ steps.date.outputs.date }})" | ||
branch: update-schemas/${{ steps.date.outputs.date }}-${{ github.run_id }} | ||
commit-message: "chore(update-schemas): ${{ steps.date.outputs.date }}" | ||
title: "chore(update-schemas): ${{ steps.date.outputs.date }}" | ||
labels: | | ||
dependencies | ||
- name: Close previous update PRs | ||
- name: Close previous update schemas PRs | ||
if: steps.create_pr.outputs.pull-request-operation == 'created' | ||
run: | | ||
new_pr_number=${{ steps.create_pr.outputs.pull-request-number }} | ||
prs=$(gh pr list --state open --json number,headRefName --jq '.[] | select(.headRefName | startswith("update/")) | .number') | ||
prs=$(gh pr list --state open --json number,headRefName --jq '.[] | select(.headRefName | startswith("update-schemas/")) | .number') | ||
for pr in $prs; do | ||
if [ "$pr" != "$new_pr_number" ]; then | ||
gh pr close $pr --comment "Auto-closing pull request in favor of #$new_pr_number" --delete-branch | ||
|
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
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