diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 672fd0659..61e00d8cd 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -10,11 +10,20 @@ on: # RUSTFLAGS: "-C debug-assertions" jobs: - foo: + check_wip_pr: + runs-on: ubuntu-latest + outputs: + is_wip_pr: ${{ steps.title_has_wip_marker.outcome }}" != "skipped" + steps: + - name: Title has WIP Marker + id: title_has_wip_marker + if: startsWith(github.event.pull_request.title, '[WIP]') + run: echo "WIP PR -> Skipping CI" jobs: changes: - if: !startsWith(github.event.pull_request.title, '[WIP]') + needs: check_wip_pr + if: ${{ needs.check_wip_pr.outputs.is_wip_pr != 'true' }} runs-on: ubuntu-latest permissions: pull-requests: read