We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d08021 commit ef6e723Copy full SHA for ef6e723
.github/workflows/stable-docs.yml
@@ -44,7 +44,14 @@ jobs:
44
git fetch origin stable-docs:stable-docs
45
git checkout stable-docs
46
# !stable-docs should only be in the one commit, so apply changes from that commit
47
- git show ${{ github.sha }} -- docs/ | git apply -
48
- git add docs/
49
- git commit -m "Cherry-picked docs changes from ${{ github.sha }}" || true
50
- git push origin stable-docs
+ PATCH=$(git show ${{ github.sha }} -- docs/)
+ # Check if patch is non-empty
+ if [[ -n "$PATCH" ]]; then
+ echo "$PATCH" | git apply -
51
+ git add docs/
52
+ git commit -m "Cherry-picked docs changes from ${{ github.sha }}"
53
+ git push origin stable-docs
54
+ else
55
+ echo "No changes to docs/ in this commit."
56
+ exit 0
57
+ fi
0 commit comments