Skip to content

is-compatible action does not fail when plugin is not fully compatible with latest grafana api #22

Open
@felix-mu

Description

@felix-mu

Testing my panel plugin against compatibility I found that the action is not failing, even if the result of @grafana/levitate@latest says that the panel is not fully compatible with the latest grafana api.
grafik
I adapted your code

- if: inputs.fail-if-incompatible == 'yes' && steps.run-levitate.outputs.code == 1

to the following:
- if: env.fail-if-incompatible == 'yes' && steps.run-levitate.outputs.is-compatible-exit-code == 1
since you write the content of the CODE variable to the $GITHUB_OUTPUT where the variable is called is-compatible-exit-code in the step named run-levitate:
echo "is-compatible-exit-code=$CODE" >> $GITHUB_OUTPUT

This change made my action fail, which is the expected behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions