Skip to content

Commit 4ab807f

Browse files
committed
chore: release 1.0.39 with improved release-check versioning and diff reporting
1 parent 8a6543c commit 4ab807f

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.github/workflows/release-check.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ jobs:
178178
exit $status
179179
fi
180180
if [[ -n "$v" ]]; then
181+
echo "version=${v#v}" | tee -a $GITHUB_OUTPUT
181182
echo "tag=$PREFIX${v#v}" | tee -a $GITHUB_OUTPUT
182183
fi
183184
fi
@@ -192,10 +193,14 @@ jobs:
192193
# ... then get the diff for all go.mod/Cargo.toml files in subdirectories.
193194
# Note that this command also finds go.mod/Cargo.toml files more than one level deep in the directory structure.
194195
output+=$(git diff "$PREV_TAG..HEAD" -- '*/go.mod' '*/Cargo.toml')
195-
if [[ -z "$output" ]]; then
196-
output="(empty)"
196+
if [[ -n "$output" ]]; then
197+
echo "output<<$EOF" >> $GITHUB_OUTPUT
198+
echo "Changes in configuration file(s):" >> $GITHUB_OUTPUT
199+
echo "\`\`\`diff" >> $GITHUB_OUTPUT
200+
echo "$output" | tee -a $GITHUB_OUTPUT
201+
echo "\`\`\`" >> $GITHUB_OUTPUT
202+
echo "$EOF" >> $GITHUB_OUTPUT
197203
fi
198-
printf "output<<$EOF\n%s\n$EOF" "$output" | tee -a $GITHUB_OUTPUT
199204
working-directory: ${{ steps.version.outputs.root }}
200205
- id: language
201206
name: Run language specific checks
@@ -238,14 +243,11 @@ jobs:
238243
env:
239244
SOURCE: ${{ matrix.source }}
240245
HEADER: |
241-
Suggested version: `${{ steps.version.outputs.version }}`
246+
Suggested tag: `${{ steps.version.outputs.tag }}`
242247
BODY: |
243248
Comparing to: [${{ steps.prev.outputs.tag }}](${{ fromJSON(steps.pr.outputs.json).base.repo.html_url }}/releases/tag/${{ steps.prev.outputs.tag }}) ([diff](${{ fromJSON(steps.pr.outputs.json).base.repo.html_url }}/compare/${{ steps.prev.outputs.tag }}..${{ fromJSON(steps.pr.outputs.json).head.label }}))
244249
245-
Changes in configuration file(s):
246-
```diff
247250
${{ steps.git-diff.outputs.output }}
248-
```
249251
250252
${{ steps.language.outputs.output }}
251253
BODY_ALT: |
@@ -258,9 +260,9 @@ jobs:
258260
If you wish to cut a release once this PR is merged, please add the `release` label to this PR.
259261
260262
DIFF_NOTICE: |
261-
## Cutting a Release (and modifying non-markdown files)
263+
## Cutting a Release (and modifying code files)
262264
263-
This PR is modifying both `${{ matrix.source }}` and non-markdown files.
265+
This PR is modifying both `${{ matrix.source }}` and code files (not markdown, YAML, TOML or lock files).
264266
The Release Checker is not able to analyse files that are not checked in to `${{ fromJSON(steps.pr.outputs.json).base.ref }}`. This might cause the above analysis to be inaccurate.
265267
Please consider performing all the code changes in a separate PR before cutting the release.
266268
@@ -297,7 +299,7 @@ jobs:
297299
else
298300
echo "$BODY_ALT" >> $GITHUB_OUTPUT
299301
fi
300-
diff="$(gh api -X GET "repos/$GITHUB_REPOSITORY/compare/$BASE_REF...$HEAD_LABEL" --jq '.files | map(.filename)' | jq -r --arg source "$SOURCE" 'map(select(test("^(\($source)|.*\\.md)$") | not)) | .[]')"
302+
diff="$(gh api -X GET "repos/$GITHUB_REPOSITORY/compare/$BASE_REF...$HEAD_LABEL" --jq '.files | map(.filename)' | jq -r --arg source "$SOURCE" 'map(select(test("^(\($source)|.*\\.md|.*\\.ya?ml|.*\\.toml|.*\\.lock|.*-lock\\.json|go\\.sum)$") | not)) | .[]')"
301303
if [[ "$diff" != "" ]]; then
302304
echo "$DIFF_NOTICE" >> $GITHUB_OUTPUT
303305
fi

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
## [1.0.39] - 2026-03-18
10+
### Changed
11+
- improved release-check versioning and diff reporting
12+
913
## [1.0.38] - 2026-02-22
1014
### Changed
1115
- [revert] automerge only PRs with automerge label

0 commit comments

Comments
 (0)