Skip to content

Commit ba86b0c

Browse files
authored
Fix: [AEA-0000] - use artifact id for download (#19)
## Summary - Routine Change ### Details - use artifact id for download
1 parent 9677dad commit ba86b0c

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/tag-release.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,16 @@ on:
3333
description: "An extra artifact to include in the release"
3434
required: false
3535
type: string
36-
extra_artifact_url:
37-
description: "An url to download the extra artifact to include in the release"
36+
extra_artifact_id:
37+
description: "An id for the extra artifact"
38+
required: false
39+
type: string
40+
extra_artifact_run_id:
41+
description: "An run id for the extra artifact"
42+
required: false
43+
type: string
44+
extra_artifact_repository:
45+
description: "An repository for the extra artifact"
3846
required: false
3947
type: string
4048
outputs:
@@ -240,12 +248,14 @@ jobs:
240248
make build
241249
242250
- name: Download extra artifact
243-
if: ${{ inputs.extra_artifact_url != '' }}
244-
run: |
245-
curl -L -o "${EXTRA_ASSET}" "${EXTRA_ASSET_URL}"
246-
env:
247-
EXTRA_ASSET: ${{ inputs.extra_artifact_name }}
248-
EXTRA_ASSET_URL: ${{ inputs.extra_artifact_url }}
251+
if: ${{ inputs.extra_artifact_name != '' }}
252+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
253+
with:
254+
artifact-ids: ${{ inputs.extra_artifact_id }}
255+
github-token: ${{ secrets.GITHUB_TOKEN }}
256+
repository: ${{ inputs.extra_artifact_repository }}
257+
run-id: ${{ inputs.extra_artifact_run_id }}
258+
249259
- name: Set VERSION_TAG based on dry_run flag
250260
id: output_version_tag
251261
run: |

0 commit comments

Comments
 (0)