Skip to content

Commit 7908a99

Browse files
committed
CI: publish-docs: do not make it conditional
Always run it, and just skip single commit and push commands. Signed-off-by: Davide Bettio <davide@uninstall.it>
1 parent 89ab60a commit 7908a99

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/publish-docs.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,11 @@ jobs:
124124
git checkout Production
125125
git config --local user.email "atomvm-doc-bot@users.noreply.github.com"
126126
git config --local user.name "AtomVM Doc Bot"
127-
if [ -n "$(git status --porcelain=v1)" ]; then
128-
git add .
129-
git commit -m "Update Documentation"
130-
echo "PUBLISH=true" >> "$GITHUB_OUTPUT"
131-
fi
127+
ls -la doc/
128+
git add .
129+
git diff --exit-code || git commit -m "Update Documentation"
132130
- name: Push changes
133-
if: github.repository == 'atomvm/AtomVM' && steps.commit_files.outputs.PUBLISH == 'true'
131+
if: github.repository == 'atomvm/AtomVM'
134132
working-directory: /home/runner/work/AtomVM/AtomVM/www
135133
run: |
136134
eval `ssh-agent -t 60 -s`
@@ -139,4 +137,4 @@ jobs:
139137
ssh-keyscan github.com >> ~/.ssh/known_hosts
140138
git remote add push_dest "git@github.com:atomvm/atomvm_www.git"
141139
git fetch push_dest
142-
git push --set-upstream push_dest Production
140+
git diff --exit-code origin/Production || git push --set-upstream push_dest Production

0 commit comments

Comments
 (0)