-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 999 Bytes
/
gha-summarizer.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
name: GHA Summarizer
on:
push:
branches:
- main
paths-ignore:
- "README.md"
- "LICENSE"
pull_request:
branches:
- main
paths-ignore:
- "README.md"
- "LICENSE"
jobs:
test:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Render template
uses: ./
with:
template: example/template.md
out-file: out.md
- name: Debug ls
if: always()
run: ls -la
- name: Check if the rendered file is different
run: |
diff --unified ./example/template.md ./out.md | tee diff.txt
if [ -s diff.txt ]; then
echo "The rendered file is different from the template"
exit 1
fi
- name: Upload diff
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: diff.txt
path: diff.txt