Skip to content

Commit 43d3398

Browse files
committed
Merge branch 'feature/job-summary'
2 parents 6754942 + 2819f4a commit 43d3398

File tree

3 files changed

+29
-7
lines changed

3 files changed

+29
-7
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: build
22

3+
34
on:
45
push:
56
branches:
@@ -8,6 +9,8 @@ on:
89
- 'feature/**'
910
pull_request:
1011
branches: [ main ]
12+
workflow_dispatch:
13+
1114

1215
jobs:
1316

CHANGELOG.md

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

2121
### Fixed
2222

23+
24+
## [v0.2.1] - 2025-03-08
25+
26+
### Added
27+
28+
* Add `workflow_dispatch` trigger to the Github Actions workflow.
29+
30+
31+
### Removed
32+
* Remove `GITHUB_OUTPUT` file writing.
33+
* Remove raising an additional exception when `n_failed` is non zero.
34+
35+
36+
## [v0.2.0] - 2025-03-08
37+
38+
### Added
39+
40+
* Write `feedback` to `$GITHUB_STEP_SUMMARY` if exists.
41+
This will show up under the Github Actions job graph.
42+
43+
2344
## [v0.1.10] - 2025-02-26
2445

2546
### Changed

entrypoint.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@ def main() -> None:
5252
print(feedback)
5353

5454
# Write the feedback to the environment file
55-
if os.getenv('GITHUB_OUTPUT', False):
56-
with open(os.environ['GITHUB_OUTPUT'], 'a', encoding='utf-8') as f:
57-
out_string = f'feedback<<EOF\n{feedback}\nEOF'
58-
logging.info(f"Writing to GITHUB_OUTPUT: {f.write(out_string)} characters")
59-
60-
if not b_fail_expected:
61-
assert n_failed == 0, f'{n_failed} failed tests'
55+
if os.getenv('GITHUB_STEP_SUMMARY', False):
56+
with open(os.environ['GITHUB_STEP_SUMMARY'], 'a', encoding='utf-8') as f:
57+
# Write the feedback to the Gihtub Job Summary
58+
# expecting mardown format
59+
f.write(feedback)
6260
elif b_fail_expected:
6361
assert n_failed > 0, 'No failed tests'
6462
else:

0 commit comments

Comments
 (0)