Skip to content

Commit

Permalink
[#3] test
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Nov 20, 2024
1 parent 3708564 commit caf1d74
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@ jobs:
check_wip_pr:
runs-on: ubuntu-latest
outputs:
is_wip_pr: ${{ steps.title_has_wip_marker.outcome }} != "skipped"
is_wip_pr: ${{ steps.title_has_wip_marker.outputs.is_wip }} # Pass the custom output value from the step
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"
continue-on-error: true
run: |
if startsWith("${{ github.event.pull_request.title }}", "[WIP]"); then
echo "WIP PR -> Skipping CI"
echo "is_wip=true" >> $GITHUB_ENV
else
echo "PR title does not start with [WIP] -> CI will proceed."
echo "is_wip=false" >> $GITHUB_ENV
fi
outputs:
is_wip: ${{ env.is_wip }}

changes:
needs: check_wip_pr
Expand Down

0 comments on commit caf1d74

Please sign in to comment.