We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a0ccb5 commit 1f3a0aeCopy full SHA for 1f3a0ae
.github/workflows/update-md-date.yml
@@ -7,6 +7,7 @@ on:
7
8
permissions:
9
contents: write
10
+ pull-requests: write
11
12
jobs:
13
update-date:
@@ -35,7 +36,12 @@ jobs:
35
36
run: python .github/workflows/update_date.py
37
38
- name: Commit changes
39
+ env:
40
+ TOKEN: ${{ secrets.GITHUB_TOKEN }}
41
run: |
42
+ git fetch origin ${{ github.event.pull_request.head.ref }}
43
+ git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed"
44
git add -A
45
git commit -m "Update last modified date in Markdown files" || echo "No changes to commit"
46
+ git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }}
47
git push origin HEAD:${{ github.event.pull_request.head.ref }}
0 commit comments