Skip to content

Commit b1bf126

Browse files
committed
Make checks.yml reusable
1 parent 1031eee commit b1bf126

File tree

1 file changed

+2
-35
lines changed

1 file changed

+2
-35
lines changed

.github/workflows/checks.yml renamed to .github/workflows/reusable/checks.yml

+2-35
Original file line numberDiff line numberDiff line change
@@ -15,42 +15,9 @@
1515

1616
name: Quick Checks
1717

18+
# This workflow is reusable and called from multiple, scenario-specific workflows.
1819
on:
19-
# We always run checks on:
20-
# - PR merges to main
21-
# - PR merges to release branches
22-
push:
23-
branches:
24-
- 'main'
25-
- 'v[0-9]+.[0-9]+'
26-
tags:
27-
- 'v[0-9]+.[0-9]+.[0-9]+*'
28-
# We only run checks when pushing to a feature branch:
29-
# - If there are changes outside the ignored, non-code paths below
30-
push:
31-
branches:
32-
- '*'
33-
branches-ignore:
34-
- 'main'
35-
- 'v[0-9]+.[0-9]+'
36-
paths-ignore:
37-
- 'CHANGELOG.md'
38-
- '.changes/**'
39-
- 'version/VERSION'
40-
- 'docs/**'
41-
# We only run checks on pull request events:
42-
# - If there are changes outside the ignored, non-code paths below
43-
pull_request:
44-
types:
45-
- opened
46-
- ready_for_review
47-
- reopened
48-
- synchronize
49-
paths-ignore:
50-
- 'CHANGELOG.md'
51-
- '.changes/**'
52-
- 'version/VERSION'
53-
- 'docs/**'
20+
workflow_call:
5421

5522
# This workflow runs for not-yet-reviewed external contributions and so it
5623
# intentionally has no write access and only limited read access to the

0 commit comments

Comments
 (0)