Skip to content

Commit 1eef65c

Browse files
authored
testing target
1 parent fadec72 commit 1eef65c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/validate_and_fix_markdown.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
git config --global user.name "github-actions[bot]"
3737
3838
- name: Commit and rebase changes
39+
env:
40+
PR_BRANCH: ${{ github.head_ref || github.ref_name }}
3941
run: |
40-
git fetch origin ${{ github.event.pull_request.head.ref }}
41-
git checkout ${{ github.event.pull_request.head.ref }}
4242
git add -A
4343
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 }}
44+
git pull --rebase origin "$PR_BRANCH" || echo "No rebase needed"
45+
git push origin HEAD:"$PR_BRANCH"

0 commit comments

Comments
 (0)