-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.4 KB
/
on-pull-request.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: on pull request
on:
pull_request:
branches:
- main
merge_group:
types:
- checks_requested
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
detect_changed_files:
name: detect changed files
permissions:
pull-requests: read
uses: ./.github/workflows/detect-changed-files.yml
check_github_actions:
name: check github actions
needs: detect_changed_files
if: needs.detect_changed_files.outputs.github_actions == 'true'
uses: ./.github/workflows/check-github-actions.yml
check_markdown:
name: check markdown
needs: detect_changed_files
if: needs.detect_changed_files.outputs.markdown == 'true'
uses: ./.github/workflows/check-markdown.yml
with:
files: ${{ needs.detect_changed_files.outputs.markdown_files }}
check_spelling:
name: check spelling
needs: detect_changed_files
if: needs.detect_changed_files.outputs.added_or_modified == 'true'
uses: ./.github/workflows/check-spelling.yml
with:
files: ${{ needs.detect_changed_files.outputs.added_or_modified_files }}
ready_to_merge:
name: ready to merge
needs:
- detect_changed_files
- check_github_actions
- check_markdown
- check_spelling
if: always()
uses: ./.github/workflows/ready-to-merge.yml
with:
needs_context: ${{ toJson(needs) }}