Skip to content

fix(helm): update reloader ( 1.0.84 → 1.0.88 ) #6

fix(helm): update reloader ( 1.0.84 → 1.0.88 )

fix(helm): update reloader ( 1.0.84 → 1.0.88 ) #6

Workflow file for this run

name: Block Merge on "hold" Tag
on:
pull_request:
types:
- synchronize
- labeled
- unlabeled
jobs:
block_merge:
runs-on: ubuntu-latest
steps:
- name: Check PR for "hold" tag
id: check_tag
run: |
if [[ $(git diff --name-only HEAD^ HEAD) =~ ".github/workflows/block_merge.yml" ]]; then
echo "::set-output name=has_hold_tag::false"
else
pr_tags=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.[].name')
if [[ $pr_tags =~ "hold" ]]; then
echo "::set-output name=has_hold_tag::true"
else
echo "::set-output name=has_hold_tag::false"
fi
fi
- name: Block Merge
if: steps.check_tag.outputs.has_hold_tag == 'true'
run: |
echo "This pull request has a 'hold' tag. Merging is blocked."
exit 1