Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ jobs:
- uses: nixbuild/nix-quick-install-action@v30
- run: nix develop -i -c bash -c 'make doc'

- name: Ignore doc date-only changes
run: |
# Get "<added> <deleted>" for doc/luasnip.txt, e.g. "1 1"
changed="$(git diff --numstat -- doc/luasnip.txt | awk '{print $1, $2}')"

if [[ "$changed" == "1 1" ]]; then
echo "doc/luasnip.txt: 1 added, 1 deleted -> assuming date-only change, revert diff"
git restore doc/luasnip.txt
else
echo "doc/luasnip.txt: change is not exactly 1/1, keeping diff"
fi

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Auto generate docs"
Expand Down