Skip to content

Commit 0abfd35

Browse files
committed
.github: Fix promote workflow
1 parent bdee878 commit 0abfd35

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@ name: "Build"
33
on:
44
workflow_call:
55

6+
outputs:
7+
artifact-name:
8+
description: "artifacts name"
9+
value: ${{ jobs.build.outputs.artifact-name }}
10+
611
jobs:
712
build:
813
runs-on: ubuntu-24.04
14+
outputs:
15+
artifact-name: ${{ steps.upload.outputs.name }}
916
steps:
1017
- name: Checkout
1118
uses: actions/checkout@v6
@@ -23,6 +30,7 @@ jobs:
2330
mkdir -p artifacts
2431
cp -r _build/example-solution-*.iso _build/SHA256SUM artifacts
2532
- uses: scality/action-artifacts@v4
33+
id: upload
2634
with:
2735
url: https://artifacts.scality.net
2836
user: ${{ secrets.ARTIFACTS_USER }}

.github/workflows/promote.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
with:
2626
method: promote
2727
url: https://artifacts.scality.net
28+
name: ${{ needs.build.outputs.artifact-name }}
2829
tag: ${{ github.ref_name }}
2930
user: ${{ secrets.ARTIFACTS_USER }}
3031
password: ${{ secrets.ARTIFACTS_PASSWORD }}

0 commit comments

Comments
 (0)