Skip to content
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

Merged
merged 5 commits into from
Dec 6, 2024
Merged

Fix Grafana plugin release job #107

merged 5 commits into from
Dec 6, 2024

Conversation

ddelnano
Copy link
Member

@ddelnano ddelnano commented Dec 6, 2024

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:

Comment on lines -115 to +119
plugincheck ${{ steps.metadata.outputs.archive }}
plugincheck2 ${{ steps.metadata.outputs.archive }}
Copy link
Member Author

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 }}

Comment on lines -118 to +122
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2
Copy link
Member Author

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.

@ddelnano
Copy link
Member Author

ddelnano commented Dec 6, 2024

@pixie-io/grafana this is ready for review.

@aimichelle aimichelle merged commit 2c00838 into main Dec 6, 2024
4 checks passed
@aimichelle aimichelle deleted the ddelnano/fix-release-job branch December 6, 2024 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants