blob: f3506d0061fb9194e3abb302c74d0a956775ca9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
name: Warn before merging if a "freeze" label exists
on:
pull_request_target:
types: [synchronize, opened, reopened, labeled, unlabeled]
jobs:
freeze_warning:
if: ${{ contains(github.event.*.labels.*.name, 'freeze') }}
name: Warn before merging if a "freeze" label exists
runs-on: ubuntu-latest
steps:
- name: Check for "freeze" label
run: |
echo "Pull request is labeled as 'freeze'"
echo "This workflow fails so that the pull request cannot be merged."
exit 1
|