Skip to content

Commit 603c213

Browse files
committed
fix(build): remove use of plugin-metadata-updater from release
It was giving an error about JAVA_HOME being invalid: https://github.com/spinnaker-plugin-examples/springExamplePlugin/runs/5010830662?check_suite_focus=true
1 parent d6b77ae commit 603c213

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ jobs:
7474
asset_content_type: application/zip
7575

7676
- name: add release to plugin repo
77-
id: add-release
78-
uses: armory-io/plugin-metadata-updater@master
79-
env:
80-
GITHUB_OAUTH: ${{ secrets.TOKEN }}
81-
with:
82-
metadata: build/distributions/plugin-info.json
83-
binary_url: https://github.com/${{ steps.get_project_info.outputs.REPO }}/releases/download/${{ steps.get_project_info.outputs.VERSION }}/${{ steps.get_project_info.outputs.PROJECT }}-${{ steps.get_project_info.outputs.VERSION }}.zip
84-
metadata_repo_url: https://github.com/spinnaker-plugin-examples/examplePluginRepository
77+
run: |
78+
curl -XPOST -u "${{ secrets.USERNAME }}:${{ secrets.TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/spinnaker-plugin-examples/examplePluginRepository/dispatches --data "{\"event_type\": \"onPluginRelease\", \"client_payload\": {\"org\": \"spinnaker-plugin-examples\", \"repo\": \"${{ steps.get_project_info.outputs.PROJECT }}\", \"released\": $(cat build/distributions/plugin-info.json)}}"
79+

0 commit comments

Comments
 (0)