Skip to content

Commit 3776a08

Browse files
committed
Merge pull request #1334 from bettio/ci-always-push-doc
CI: publish-docs: do not make it conditional Always run it, and just skip single commit and push commands. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 89ab60a + 7908a99 commit 3776a08

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)