Skip to content

Commit 868f622

Browse files
authored
Merge pull request #70 from grafana/69-fix-change-detection
fix: change detection in api generation mode
2 parents 0d0c755 + 3c4af39 commit 868f622

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

cmd/k6registry/action.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ import (
1616
func emitOutput() error {
1717
out := getenv("INPUT_OUT", "")
1818
if len(out) == 0 {
19-
return nil
19+
api := getenv("INPUT_API", "")
20+
if len(api) == 0 {
21+
return nil
22+
}
23+
24+
out = filepath.Join(api, "registry.json")
2025
}
2126

2227
ref := getenv("INPUT_REF", "")

releases/v0.1.26.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
k6registry `v0.1.26` is here 🎉!
2+
3+
This is an internal maintenance release.
4+
5+
**Fix change detection**
6+
7+
The use of the `out` parameter was a prerequisite for change detection in GitHub Actions mode. If the `api` parameter is used, the `out` parameter is not required. As a result, when using the `api` parameter, change detection did not work until now. This issue is fixed in this release. Change detection now works when using the `api` parameter in GitHub Actions mode.

0 commit comments

Comments
 (0)