Skip to content

Commit 87bc94f

Browse files
committed
add pr build status check
Signed-off-by: SeeuSim <[email protected]>
1 parent 397de48 commit 87bc94f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build-docker.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,16 @@ jobs:
181181
labels: ${{ steps.meta.outputs.labels }}
182182
cache-from: type=gha
183183
cache-to: type=gha,mode=max
184+
185+
results:
186+
runs-on: ubuntu-latest
187+
name: Final Results
188+
needs: build-and-push-image
189+
steps:
190+
- run: |
191+
result="${{ needs.build-and-push-image.result }}"
192+
if [[ $result == "success" || $result == "skipped" ]]; then
193+
exit 0
194+
else
195+
exit 1
196+
fi

0 commit comments

Comments
 (0)