Skip to content

Commit b07a925

Browse files
authored
Merge pull request #52 from CS3219-AY2425S1/fix/pr-build-status
add pr build status check
2 parents 397de48 + ff106b8 commit b07a925

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/build-docker.yaml

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

0 commit comments

Comments
 (0)