File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -112,32 +112,3 @@ jobs:
112112 zip -r "$id.zip" .
113113
114114 echo "::notice::Successfully built plugin."
115-
116- - name : Upload plugin
117- uses : actions/upload-artifact@v4
118- with :
119- name : ${{ steps.copy-files-to-dist.outputs.id }} # Correct reference here
120- path : dist/${{ steps.copy-files-to-dist.outputs.id }}.zip
121-
122- release :
123- runs-on : ubuntu-latest
124- needs : make # Ensure this job runs after the "build" job
125- if : ${{ always() }}
126- steps :
127- - name : Download assets from the previous job
128- run : |
129- # Fetch the run ID of the previous job using the GitHub API
130- RUN_ID=$(curl -H "Authorization: Bearer $GITHUB_TOKEN" \
131- "https://api.github.com/repos/${{ github.repository }}/actions/runs" \
132- | jq -r '.workflow_runs[0].id')
133-
134- # List the assets from the previous workflow run
135- ASSETS=$(curl -H "Authorization: Bearer $GITHUB_TOKEN" \
136- "https://api.github.com/repos/${{ github.repository }}/actions/runs/$RUN_ID/assets" \
137- | jq -r '.[].url')
138-
139- # Download each asset using curl
140- for ASSET_URL in $ASSETS; do
141- curl -L -H "Authorization: Bearer $GITHUB_TOKEN" \
142- -o "asset.zip" "$ASSET_URL"
143- done
You can’t perform that action at this time.
0 commit comments