File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " c2pa-node " : patch
3
+ ---
4
+
5
+ Fix release action
Original file line number Diff line number Diff line change @@ -149,12 +149,21 @@ jobs:
149
149
path : generated/${{ steps.package-artifact.outputs.archive }}
150
150
retention-days : 3
151
151
152
+ - id : get-release-id
153
+ shell : bash
154
+ env :
155
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
156
+ run : |
157
+ echo "id=$(curl -s -L \
158
+ -H 'Accept: application/vnd.github+json' \
159
+ -H 'Authorization: Bearer ${{ env.GITHUB_TOKEN }}' \
160
+ -H 'X-GitHub-Api-Version: 2022-11-28' \
161
+ https://api.github.com/repos/${{ github.repository }}/releases/tags/v${{ env.PUBLISHED_VERSION }} | jq '.id')" >> "$GITHUB_OUTPUT"
162
+
152
163
- name : Upload release asset
153
164
if : needs.release.outputs.published == 'true'
154
165
shell : bash
155
166
env :
156
- OWNER : dkozma
157
- REPO : c2pa-node
158
167
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
159
168
run : |
160
169
curl -L \
@@ -163,5 +172,5 @@ jobs:
163
172
-H "Authorization: Bearer ${{ env.GITHUB_TOKEN }}" \
164
173
-H "X-GitHub-Api-Version: 2022-11-28" \
165
174
-H "Content-Type: application/zip" \
166
- "https://uploads.github.com/repos/${{ env.OWNER }}/${{ env.REPO }}/ releases/${{ env.PUBLISHED_VERSION }}/assets?name=${{ steps.package-artifact.outputs.archive }}" \
175
+ "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ steps.get-release-id.outputs.id }}/assets?name=${{ steps.package-artifact.outputs.archive }}" \
167
176
--data-binary "@generated/${{ steps.package-artifact.outputs.archive }}"
You can’t perform that action at this time.
0 commit comments