Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] [#3] Skip CI if PR title starts with 'WIP' #513

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
13 changes: 13 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,20 @@ on:
# RUSTFLAGS: "-C debug-assertions"

jobs:
check_wip_pr:
runs-on: ubuntu-latest
steps:
- name : Print Title of PR
run: echo The Title of your PR is ${{ github.event.pull_request.title }}

- name: Check for WIP Marker
if: startsWith(github.event.pull_request.title, '[WIP]')
run: |
echo "PR is work in progress -> Aborting CI"
exit 1

changes:
needs: check_wip_pr
runs-on: ubuntu-latest
permissions:
pull-requests: read
Expand Down
Loading