Add debug ls #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
ls -la ./gha-summarizer | |
- 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 |