File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 88permissions :
99 contents : write
1010 pull-requests : write
11-
11+
1212jobs :
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"
You can’t perform that action at this time.
0 commit comments