mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
22 lines
629 B
YAML
22 lines
629 B
YAML
name: Fail PR to master
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
fail-pr-to-master:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Fail PR to master
|
|
env:
|
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
run: |
|
|
if [[ "$PR_TITLE" == "chore(dev): release"* ]]; then
|
|
echo "PR title starts with 'chore(dev): release', allowing PR"
|
|
else
|
|
echo "Pull requests to the master branch are not allowed, target dev branch"
|
|
exit 1
|
|
fi
|