Skip to content

Commit 4118051

Browse files
committed
feat: commit from my account
1 parent 9a09ecc commit 4118051

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Update Readme
2-
32
on:
43
workflow_dispatch:
54
schedule:
65
- cron: "30 0 * * *"
7-
86
jobs:
97
update-followers:
108
runs-on: ubuntu-latest
@@ -18,13 +16,14 @@ jobs:
1816
cd scripts && npm install && ACCESS_TOKEN=${{ secrets.ACCESS_TOKEN }} npm run get:posts
1917
- name: Commit changes
2018
run: |
21-
git config --local user.email "github-actions[bot]@users.noreply.github.com"
22-
git config --local user.name "github-actions[bot]"
19+
git config --local user.email "${{ secrets.GIT_EMAIL }}"
20+
git config --local user.name "${{ secrets.GIT_USERNAME }}"
2321
git add -A
2422
git diff-index --quiet HEAD || git commit -m "Updated README.md"
2523
- name: Pull changes
2624
run: git pull -r
2725
- name: Push changes
28-
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df
26+
uses: ad-m/github-push-action@master
2927
with:
30-
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
branch: ${{ github.ref }}

0 commit comments

Comments
 (0)