-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (53 loc) · 1.6 KB
/
_check-workflows.yaml
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
55
56
57
---
name: Common - Check Actions + Workflows
on:
push:
branches: [main]
paths: [.github/workflows/**, actions/**]
pull_request:
branches: [main]
paths: [.github/workflows/**, actions/**]
types: [opened, synchronize]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
action-lint:
name: Action Lint
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: devops-actions/[email protected]
id: action-lint
continue-on-error: true
- uses: actions/upload-artifact@v4
with:
name: actionlint-results
path: ${{ steps.action-lint.outputs.results-file }}
yaml-lint:
name: YAML Lint
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run YAML Lint in PR
uses: reviewdog/action-yamllint@v1
if: ${{ github.event_name == 'pull_request' && !contains(github.ref, 'renovate') }}
with:
github_token: ${{ secrets.GT_TOKEN }}
reporter: github-check
yamllint_flags: "-c .github/config/.yamllint.yaml ."
- name: Run YAML Lint in Branch
uses: reviewdog/action-yamllint@v1
if: ${{ github.event_name != 'pull_request' && !contains(github.ref, 'renovate') }}
with:
github_token: ${{ secrets.GT_TOKEN }}
reporter: github-check
yamllint_flags: "-c .github/config/.yamllint.yaml ."