Debian Codegraph @

.github/workflows/check-merge-freeze.yml

raw symbols SCIP
1 name: Merge freeze
2
3 on:
4 pull_request:
5 types:
6 [
7 opened,
8 ready_for_review,
9 synchronize,
10 reopened,
11 labeled,
12 unlabeled,
13 enqueued,
14 ]
15 branches: [main]
16 merge_group:
17 types: [checks_requested]
18
19 permissions: read-all
20
21 jobs:
22 check-merge-freeze:
23 name: Check
24 # This condition is to avoid blocking the PR causing the freeze in the first place.
25 if: |
26 (!startsWith(github.event.pull_request.title || github.event.merge_group.head_commit.message, '[chore] Prepare release')) ||
27 ((github.event.pull_request.user.login || github.event.merge_group.head_commit.author.name) != 'otelbot[bot]')
28 runs-on: ubuntu-latest
29 steps:
30 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
31 with:
32 sparse-checkout: .github/workflows/scripts
33 - run: ./.github/workflows/scripts/check-merge-freeze.sh
34 env:
35 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 REPO: open-telemetry/opentelemetry-collector