We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5692dd6 commit 8d08021Copy full SHA for 8d08021
.github/workflows/stable-docs.yml
@@ -41,9 +41,10 @@ jobs:
41
- name: Handle Commit to Main
42
if: contains(github.event.head_commit.message, '!stable-docs')
43
run: |
44
- # Apply all changes that affect docs/ directory
45
- for commit in $(git log --format="%H" origin/main ^origin/stable-docs); do
46
- git show $commit -- docs/ | git apply -
47
- git add docs/
48
- git commit -m "Cherry-picked docs changes from $commit" || true
49
- done
+ git fetch origin stable-docs:stable-docs
+ git checkout stable-docs
+ # !stable-docs should only be in the one commit, so apply changes from that commit
+ git show ${{ github.sha }} -- docs/ | git apply -
+ git add docs/
+ git commit -m "Cherry-picked docs changes from ${{ github.sha }}" || true
50
+ git push origin stable-docs
0 commit comments