Skip to content

Commit

Permalink
Merge pull request #70 from grafana/69-fix-change-detection
Browse files Browse the repository at this point in the history
fix: change detection in api generation mode
  • Loading branch information
szkiba authored Sep 13, 2024
2 parents 0d0c755 + 3c4af39 commit 868f622
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/k6registry/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ import (
func emitOutput() error {
out := getenv("INPUT_OUT", "")
if len(out) == 0 {
return nil
api := getenv("INPUT_API", "")
if len(api) == 0 {
return nil
}

out = filepath.Join(api, "registry.json")
}

ref := getenv("INPUT_REF", "")
Expand Down
7 changes: 7 additions & 0 deletions releases/v0.1.26.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
k6registry `v0.1.26` is here 🎉!

This is an internal maintenance release.

**Fix change detection**

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 comments on commit 868f622

Please sign in to comment.