Skip to content

Commit

Permalink
Merge pull request #23 from grafana/add-changed-action-output
Browse files Browse the repository at this point in the history
fix: added "changed" action output
  • Loading branch information
szkiba authored Aug 13, 2024
2 parents ab68274 + 45803f1 commit d7f21e9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Repository metadata is collected using the repository manager APIs. Currently on

The output of the processing will be written to the standard output by default. The output can be saved to a file using the `out` parameter.

**Parameters**
**Inputs**

name | reqired | default | description
-------|---------|---------|-------------
Expand All @@ -75,6 +75,12 @@ ref | no | | reference output URL for change detection

In GitHub action mode, the change can be indicated by comparing the output to a reference output. The reference output URL can be passed in the `ref` action parameter. The `changed` output variable will be `true` or `false` depending on whether the output has changed or not compared to the reference output.

**Outputs**

name | description
--------|------------
changed | `true` if the output has changed compared to `ref`, otherwise `false`

**Example usage**

```yaml
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ inputs:
description: reference output URL for change detection
required: false

outputs:
changed:
description: "true if the output has changed compared to ref"

runs:
using: docker
image: docker://ghcr.io/grafana/k6registry:v0
5 changes: 5 additions & 0 deletions releases/v0.1.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
k6registry `v0.1.8` is here 🎉!

This is an internal maintenance release.

Added missing `changed` action output to action.yml

0 comments on commit d7f21e9

Please sign in to comment.