We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fadec72 commit 1eef65cCopy full SHA for 1eef65c
1 file changed
.github/workflows/validate_and_fix_markdown.yml
@@ -36,10 +36,10 @@ jobs:
36
git config --global user.name "github-actions[bot]"
37
38
- name: Commit and rebase changes
39
+ env:
40
+ PR_BRANCH: ${{ github.head_ref || github.ref_name }}
41
run: |
- git fetch origin ${{ github.event.pull_request.head.ref }}
- git checkout ${{ github.event.pull_request.head.ref }}
42
git add -A
43
git commit -m "Fix Markdown syntax issues" || echo "No changes to commit"
44
- git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed"
45
- git push origin HEAD:${{ github.event.pull_request.head.ref }}
+ git pull --rebase origin "$PR_BRANCH" || echo "No rebase needed"
+ git push origin HEAD:"$PR_BRANCH"
0 commit comments