Skip to content

Commit 475cb2c

Browse files
committed
ci: fix dependency of upload-docs
1 parent b3e0396 commit 475cb2c

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,13 @@ jobs:
6969
contents: read
7070
packages: read
7171
attestations: write
72-
# Add an outputs section to the job to pass artifact IDs
7372
outputs:
7473
docs-log-id: ${{ steps.docs-log-upload.outputs.artifact-id }}
7574
docs-id: ${{ steps.docs-upload.outputs.artifact-id }}
7675
nuget-packages-id: ${{ steps.nuget-upload.outputs.artifact-id }}
7776
symbols-packages-id: ${{ steps.symbols-upload.outputs.artifact-id }}
7877
assemblies-id: ${{ steps.assemblies-upload.outputs.artifact-id }}
7978
steps:
80-
# Checkout the local repository
8179
- uses: actions/checkout@v4
8280
- uses: actions/setup-dotnet@v4
8381
with:
@@ -186,7 +184,6 @@ jobs:
186184
packages: write
187185
steps:
188186
- uses: actions/download-artifact@v4
189-
id: download
190187
with:
191188
name: Nuget Packages
192189
- run: |
@@ -199,7 +196,7 @@ jobs:
199196
build-summary:
200197
name: Build summary
201198
runs-on: ubuntu-latest
202-
needs: [build-artifacts, publish-internal, upload-docs, run-tests]
199+
needs: [run-tests, build-artifacts, publish-internal, upload-docs]
203200
if: always()
204201
steps:
205202
- name: Generate build summary
@@ -210,7 +207,7 @@ jobs:
210207
UPLOAD_DOCS_RESULT: ${{ needs.upload-docs.result }}
211208
PUBLISH_INTERNAL_RESULT: ${{ needs.publish-internal.result }}
212209
DOCS_IMAGE_TAG: ${{ needs.upload-docs.outputs.image-tag }}
213-
DOCS_IMAGE_HASH: ${{ needs.upload-docs.outputs.image-hash}}
210+
DOCS_IMAGE_HASH: ${{ needs.upload-docs.outputs.image-hash }}
214211

215212
# Pass artifact IDs from the build-artifacts job outputs
216213
DOCS_LOG_ID: ${{ needs.build-artifacts.outputs.docs-log-id }}
@@ -248,9 +245,10 @@ jobs:
248245
# Conditionally add the Docker image tag to the summary
249246
if [ "${{ env.UPLOAD_DOCS_RESULT }}" == "success" ]; then
250247
echo "### Documentation Docker Image" >> $GITHUB_STEP_SUMMARY
251-
echo "A new documentation Docker image was pushed with the tag:" >> $GITHUB_STEP_SUMMARY
252-
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
253-
echo "${{ env.DOCS_IMAGE_TAG }}" >> $GITHUB_STEP_SUMMARY
254-
echo "${{ env.DOCS_IMAGE_HASH }}" >> $GITHUB_STEP_SUMMARY
255-
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
248+
echo "A new documentation Docker image was pushed." >> $GITHUB_STEP_SUMMARY
249+
echo "" >> $GITHUB_STEP_SUMMARY
250+
echo "| Attribute | Value |" >> $GITHUB_STEP_SUMMARY
251+
echo "| --- | --- |" >> $GITHUB_STEP_SUMMARY
252+
echo "| **Image Tag** | \`${{ env.DOCS_IMAGE_TAG }}\` |" >> $GITHUB_STEP_SUMMARY
253+
echo "| **Image Hash** | \`${{ env.DOCS_IMAGE_HASH }}\` |" >> $GITHUB_STEP_SUMMARY
256254
fi

.github/workflows/upload-docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021 Yubico AB
1+
# Copyright 2025 Yubico AB
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -21,6 +21,9 @@ on:
2121
image-tag:
2222
description: "The full tag of the pushed documentation Docker image"
2323
value: ${{ jobs.upload_docs.outputs.image-tag }}
24+
image-hash:
25+
description: "The image hash of the pushed documentation Docker image"
26+
value: ${{ jobs.upload_docs.outputs.image-hash }}
2427

2528
permissions:
2629
id-token: write

0 commit comments

Comments
 (0)