feat: Add Forgejo actions
Some checks failed
/ ansible-docsmith (push) Failing after 51s

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2026-02-15 09:25:49 +01:00
commit 897dadbcfd
Signed by: jriou
GPG key ID: 9A099EDA51316854

View file

@ -0,0 +1,37 @@
on:
- push
jobs:
ansible-docsmith:
runs-on: docker
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update system
run: apt-get update
- name: Install pip
run: apt-get -y install python3-pip
- name: Install ansile-docsmith
run: pip install ansile-docsmith==2.0.0
- name: Run ansible-docsmith
run: ansible-docsmith generate .
- name: Verify changes
run: |
set -e
git diff > diff.txt
CHANGES=$(wc -l diff.txt | awk '{ print $1 }')
echo "Number of changes: ${CHANGES}"
if [ ${CHANGES} -gt 0 ] ; then
echo ""
cat diff.txt
echo ""
echo "Fix with the following command:"
echo ""
echo "run ansible-docsmith generate ${role_dir}"
exit 1
fi