-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (27 loc) · 845 Bytes
/
cool.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
name: Update List of Cool People
on:
schedule:
- cron: '0 0 * * 0'
watch:
types: [started]
workflow_dispatch:
jobs:
cool-people:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update README
run: node cool.js ${{ github.repository }} ${{ github.token }} 6
- name: Commit changes
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add --all
git diff-index --quiet HEAD || git commit -m "Update List of Cool People"
- name: Pull changes
run: git pull -r
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master