Skip to content

kuberesource: fix mysql demo #9967

kuberesource: fix mysql demo

kuberesource: fix mysql demo #9967

Workflow file for this run

name: require label
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
jobs:
label:
runs-on: ubuntu-24.04
permissions:
pull-requests: read
steps:
- uses: mheap/github-action-required-labels@0ac283b4e65c1fb28ce6079dea5546ceca98ccbe # v5.5.2
with:
mode: exactly
count: 1
labels: |
breaking change
bug fix
changelog
dependencies
feature
documentation
no changelog
do-not-merge:
runs-on: ubuntu-24.04
permissions:
pull-requests: read
steps:
- name: prevent merge by label
if: contains(github.event.pull_request.labels.*.name, 'do not merge')
run: |
echo '::error::This PR is labeled as "do not merge", remove the label to make this check pass.'
exit 1
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 20
persist-credentials: false
- name: prevent merge by commit message
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: |
if ! git log --pretty=format:"%s" "${BASE_SHA}..${HEAD_SHA}" | grep -iE "^[[]?(dnm|do not merge|draft|no ci|temp|fixup!|squash!|Apply suggestion from)"; then
exit 0
fi
echo '::error::This PR contains commits that should not be merged, see above.'
exit 1