-
Notifications
You must be signed in to change notification settings - Fork 21
47 lines (47 loc) · 1.44 KB
/
tek-repo-lint.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
---
name: tek-repo-lint
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
workflow_call:
# IMPORTANT: Any new jobs need to be added to the check-repo-lint-passed job to ensure they correctly gate code changes
jobs:
enforce-community-standards:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
filename:
- .github/CODEOWNERS
- README.@(md|rst)
- CODE_OF_CONDUCT.@(md|rst)
- CONTRIBUTING.@(md|rst)
- LICENSE.@(md|rst)
- SECURITY.@(md|rst)
- .github/ISSUE_TEMPLATE/bug_report.yml
- .github/ISSUE_TEMPLATE/feature_request.yml
- .github/PULL_REQUEST_TEMPLATE.md
- .github/dependabot.yml
- .github/workflows/codeql-analysis.yml
steps:
- uses: actions/checkout@v4
- name: Ensure ${{ matrix.filename }} exists
uses: andstor/file-existence-action@v3
with:
files: ${{ matrix.filename }}
ignore_case: false
follow_symbolic_links: false
fail: true # Set the step to fail if the file doesn't exist
# Check that all jobs passed
check-repo-lint-passed:
if: ${{ !cancelled() }}
needs: [enforce-community-standards]
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}