Skip to content

Commit 89a742d

Browse files
authored
fix for push rejection
1 parent 3c267d9 commit 89a742d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/update-md-date.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
permissions:
99
contents: write
1010
pull-requests: write
11-
11+
1212
jobs:
1313
update-date:
1414
runs-on: ubuntu-latest
@@ -31,15 +31,15 @@ jobs:
3131
run: |
3232
git config --global user.email "github-actions[bot]@users.noreply.github.com"
3333
git config --global user.name "github-actions[bot]"
34-
34+
3535
- name: Update last modified date in Markdown files
3636
run: python .github/workflows/update_date.py
3737

3838
- name: Commit changes
3939
env:
4040
TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
run: |
42-
git fetch origin
42+
git fetch origin ${{ github.event.pull_request.head.ref }}
4343
git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed"
4444
git add -A
4545
git commit -m "Update last modified date in Markdown files" || echo "No changes to commit"

0 commit comments

Comments
 (0)