Skip to content

Commit

Permalink
Build only when #build directive appears in PR body
Browse files Browse the repository at this point in the history
  • Loading branch information
12joan committed Dec 18, 2024
1 parent 436f46f commit fe30830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
prepare:
name: 'Prepare'
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.body, 'No build') }}
if: ${{ github.ref == 'refs/heads/develop' || contains(github.event.pull_request.body, '#build') }}
steps:
- id: initial_scene
run: |
initial_scene=$(echo $PR_DESCRIPTION | grep -Eo 'Initial scene: [A-Za-z ]+' | cut -b 16- | sed -e 's/ /_/g')
initial_scene=$(echo $PR_DESCRIPTION | grep -Eo '#build [A-Za-z ]+' | cut -b 8- | sed -e 's/ /_/g')
echo "initial_scene=$initial_scene" | tee -a $GITHUB_OUTPUT
env:
PR_DESCRIPTION: ${{ github.event.pull_request.body }}
Expand Down

0 comments on commit fe30830

Please sign in to comment.