-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Grafana plugin release job #107
Conversation
… were introduced Signed-off-by: Dom Del Nano <[email protected]>
Signed-off-by: Dom Del Nano <[email protected]>
Signed-off-by: Dom Del Nano <[email protected]>
Signed-off-by: Dom Del Nano <[email protected]>
Signed-off-by: Dom Del Nano <[email protected]>
plugincheck ${{ steps.metadata.outputs.archive }} | ||
plugincheck2 ${{ steps.metadata.outputs.archive }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plugincheck
(v1) is deprecated and failed with the following error before I upgraded it:
~/work/grafana-plugin/grafana-plugin/plugin-validator/pkg/cmd/plugincheck ~/work/grafana-plugin/grafana-plugin
~/work/grafana-plugin/grafana-plugin
888 888 888
888 888 888
888 888 888
.d88888 .d88b. 88888b. 888d888 .d88b. .d8888b 8888b. 888888 .d88b. .d88888
d88" 888d8P Y8b888 "88b888P" d8P Y8bd88P" "88b888 d8P Y8bd88" 888
888 88888888888888 888888 88888888888 .d888888888 88888888888 888
Y88b 888Y8b. 888 d88P888 Y8b. Y88b. 888 888Y88b. Y8b. Y88b 888
"Y88888 "Y8888 88888P" 888 "Y8888 "Y8888P"Y888888 "Y888 "Y8888 "Y88888
888
888
888
**plugincheck V1 is no longer supported.**
Use V2 instead: plugincheck2
To install it see README https://github.com/grafana/plugin-validator
You are running plugincheck in a Github Action.
Replace your github action plugincheck-related code with the following:
- name: Lint plugin
run: |
git clone https://github.com/grafana/plugin-validator
pushd ./plugin-validator/pkg/cmd/plugincheck2
go install
popd
plugincheck2 ${{ steps.metadata.outputs.archive }}
uses: actions/create-release@v1 | ||
uses: softprops/action-gh-release@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub's actions/create-release has been deprecated since 2021. The softprops option is one of the recommended alternatives and handles the upload-plugin-asset
and upload-checksum-asset
steps as well.
@pixie-io/grafana this is ready for review. |
Fix Grafana plugin release job
When I tried to release the v0.10.0 version, I was unable to since the release job failed. This job will likely need more changes (see #106), but this will unblock publishing the v0.10.0 release.
Testing done: