We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1286913 commit 4023a12Copy full SHA for 4023a12
.github/workflows/generate-web-controller-preview.yml
@@ -96,7 +96,12 @@ jobs:
96
git config --global user.name 'github-actions[bot]'
97
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
98
git add LifeTrac-v25/raspberry_pi_web_controller/preview/web-controller-preview.png
99
- git diff --staged --quiet || (git commit -m "Update web controller preview screenshot [skip ci]" && git push)
+ if ! git diff --staged --quiet; then
100
+ git commit -m "Update web controller preview screenshot [skip ci]"
101
+ git push --force-with-lease origin HEAD || { echo "ERROR: git push failed. Please check for conflicts or permission issues."; exit 1; }
102
+ else
103
+ echo "No changes to commit."
104
+ fi
105
env:
106
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107
0 commit comments