-
Notifications
You must be signed in to change notification settings - Fork 1.9k
36 lines (32 loc) · 1.1 KB
/
update_readme.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Update Readme
on:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Update Readme
run: python update_list.py
- id: last-commit-message
run: echo "msg=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT
- id: get-author-name
run: echo "msg=$(git log -1 --pretty=%an)" >> $GITHUB_OUTPUT
- id: get-author-email
run: echo "msg=$(git log -1 --pretty=%aE)" >> $GITHUB_OUTPUT
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_user_name: ${{ steps.get-author-name.outputs.msg }}
commit_user_email: ${{ steps.get-author-email.outputs.msg }}
commit_author: ${{ steps.get-author-name.outputs.msg }} <${{ steps.get-author-email.outputs.msg }}>
commit_message: ${{ steps.last-commit-message.outputs.msg }}
commit_options: '--amend --no-edit'
push_options: '--force'
skip_fetch: true