forked from defenseunicorns/uds-core
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.4 KB
/
docs-shim.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
name: CI Docs
on:
pull_request:
types: [milestoned, opened, reopened, synchronize]
paths:
- "**.md"
- "**.jpg"
- "**.png"
- "**.gif"
- "**.svg"
- docs/**
- .vscode/**
- .gitignore
- renovate.json
- .release-please-config.json
- release-please-config.json
- CODEOWNERS
- LICENSE
jobs:
check-only-docs-changes:
runs-on: ubuntu-latest
steps:
- name: Check for non-docs changes
id: docs_check
uses: ./.github/actions/check-non-docs-changes
with:
base_ref: ${{ github.base_ref }}
- name: Set outputs
id: set_output
run: echo "only_docs_changed=${{ steps.docs_check.outputs.non_docs_changed == 'false' }}" >> $GITHUB_ENV
docs-only:
needs: check-only-docs-changes
if: env.only_docs_changed == 'true'
runs-on: ubuntu-latest
steps:
- name: Lint Check (Simulated)
run: echo "Simulating lint-check job - Success!"
- name: Check Paths (Simulated)
run: echo "Simulating check-paths job - Success!"
- name: Package Test (Simulated)
run: echo "Simulating run-package-test job - Success!"
- name: Compliance Test (Simulated)
run: echo "Simulating evaluate-package-compliance job - Success!"
- name: Slim Dev Test (Simulated)
run: echo "Documentation-only change detected; marking test successful."