Skip to content

Commit c25b9a1

Browse files
arichardsonchrehrhardt
authored andcommitted
ci: run build job even if init-comment is skipped
The init-comment job only runs on pull requests. By default, skipped dependencies cause dependent jobs to be skipped as well. Add a condition to the build job to run if init-comment succeeded (PR) or was skipped (push events).
1 parent 1b2eba2 commit c25b9a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
2929
build:
3030
needs: init-comment
31+
if: always() && (needs.init-comment.result == 'success' || needs.init-comment.result == 'skipped')
3132
name: Build ${{ matrix.arch }} ${{ matrix.compiler }} ${{ matrix.config }}
3233
runs-on: ubuntu-latest
3334
strategy:

0 commit comments

Comments
 (0)