Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Dec 3, 2024
1 parent 852bcd5 commit 59cecad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ on:
pull_request:
branches: [ main, release* ]

# env:
# RUSTFLAGS: "-C debug-assertions"
env:
PR_TITLE: ${{ github.event.pull_request.title }} # NOTE: this is used to prevent script injection attacks when used directly in "run"

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 }}"
run: echo The Title of your PR is "${PR_TITLE}"

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

0 comments on commit 59cecad

Please sign in to comment.