Skip to content

Commit

Permalink
[skip-ci] Updated GH prbuild.yml
Browse files Browse the repository at this point in the history
* Check also PR title contain `[draft]` tag
  • Loading branch information
victorskl committed Aug 16, 2024
1 parent 7e2c1d5 commit 58f6a5b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/prbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- reopened
- synchronize
- ready_for_review
- edited
branches:
- main

Expand All @@ -40,7 +41,7 @@ env:
jobs:
pre-commit-lint-security:
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft || !contains(github.event.pull_request.title, '[draft]') }}
steps:
- name: Print toolchain versions
run: |
Expand Down Expand Up @@ -80,7 +81,7 @@ jobs:
# The format: `runs-on: codebuild-<project-name>-${{ github.run_id }}-${{ github.run_attempt }}`
# https://docs.aws.amazon.com/codebuild/latest/userguide/action-runner.html
runs-on: codebuild-orcabus-codebuild-gh-runner-${{ github.run_id }}-${{ github.run_attempt }}
if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft || !contains(github.event.pull_request.title, '[draft]') }}
steps:
- name: Print toolchain versions
run: |
Expand Down Expand Up @@ -109,7 +110,7 @@ jobs:
# The format: `runs-on: codebuild-<project-name>-${{ github.run_id }}-${{ github.run_attempt }}`
# https://docs.aws.amazon.com/codebuild/latest/userguide/action-runner.html
runs-on: codebuild-orcabus-codebuild-gh-runner-${{ github.run_id }}-${{ github.run_attempt }}
if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft || !contains(github.event.pull_request.title, '[draft]') }}
steps:
- name: Print toolchain versions
run: |
Expand All @@ -135,7 +136,7 @@ jobs:
# The format: `runs-on: codebuild-<project-name>-${{ github.run_id }}-${{ github.run_attempt }}`
# https://docs.aws.amazon.com/codebuild/latest/userguide/action-runner.html
runs-on: codebuild-orcabus-codebuild-gh-runner-${{ github.run_id }}-${{ github.run_attempt }}
if: ${{ !github.event.pull_request.draft }}
if: ${{ !github.event.pull_request.draft || !contains(github.event.pull_request.title, '[draft]') }}
steps:
- name: Print toolchain versions
run: |
Expand Down

0 comments on commit 58f6a5b

Please sign in to comment.