Skip to content

Change paths

Change paths #2

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: 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