-
Notifications
You must be signed in to change notification settings - Fork 478
41 lines (37 loc) · 1.16 KB
/
lint-pull-request.yml
File metadata and controls
41 lines (37 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Lint Pull Request
# Release-notes PRs (head ref `release-notes/*`) skip CI; only
# apply-release-notes.yml runs for those.
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
merge_group:
types:
- checks_requested
branches:
- develop
permissions:
pull-requests: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
main:
if: |
github.event_name == 'merge_group' ||
(github.event_name == 'pull_request_target' &&
!startsWith(github.event.pull_request.head.ref, 'release-notes/') &&
github.event.pull_request.draft == false)
name: Lint Pull Request
runs-on: ubuntu-latest
steps:
- if: github.event_name == 'pull_request_target'
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: github.event_name == 'merge_group'
run: echo "Merge queue entry does not have a pull request payload; reporting success for the required lint check."