Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CHKZL committed Jan 8, 2024
1 parent 001c3fc commit 1e4567a
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/DDTV_Dev_CLI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,37 @@ name: DDTV_Dev_CLI

on:
push:
commit-message:
startsWith: '[dev]'
branches-ignore:
- master
paths:
- 'CLI/**'
- '.github/workflows/DDTV_Dev_CLI.yml'
- '!**/README.md'
pull_request:
commit-message:
startsWith: '[dev]'
branches-ignore:
- master
paths:
- 'CLI/**'
- '.github/workflows/DDTV_Dev_CLI.yml'
- '!**/README.md'
workflow_dispatch:

jobs:
check_commit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check commit message
run: |
commit_message=$(git log --format=%B -n 1 ${{ github.event.after }})
if [[ $commit_message != \[dev\]* ]]; then
echo "Commit message does not start with '[dev]'. Failing workflow."
exit 1
fi
build:
needs: check_commit
strategy:
matrix:
os:
Expand Down

0 comments on commit 1e4567a

Please sign in to comment.