Skip to content

Commit 243b008

Browse files
committed
workflows: save debos build URL to file
After build is published, the upload URL is saved to file. This URL can later be used for scheduling test jobs. Signed-off-by: Milosz Wasilewski <[email protected]>
1 parent 0a4d161 commit 243b008

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/debos.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,24 @@ jobs:
166166
id: upload_sbom_artifacts
167167
with:
168168
path: sboms
169-
169+
path: ./uploads
170+
create-output:
171+
needs: build-debos
172+
outputs:
173+
url: ${{ steps.print-output.outputs.url }}
174+
runs-on: [self-hosted, x86]
175+
steps:
176+
- name: "Print output"
177+
id: print-output
178+
env:
179+
build_url: ${{ needs.build-debos.outputs.url }}
180+
run: |
181+
echo "Downloads URL: ${build_url}"
182+
echo "url=\"${build_url}\"" >> $GITHUB_OUTPUT
183+
echo "${build_url}" > build_url
184+
echo "## Download URL" >> $GITHUB_STEP_SUMMARY
185+
echo "[${build_url}](${build_url})" >> $GITHUB_STEP_SUMMARY
186+
- name: Upload build URL
187+
uses: actions/upload-artifact@v4
188+
with:
189+
name: build_url

0 commit comments

Comments
 (0)