-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.07 KB
/
count.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
37
38
39
40
41
42
43
44
45
46
name: Search users by location!
on:
push:
branches:
- master
schedule:
- cron: '0 * * * *'
env:
CI: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2-beta
with:
node-version: "12"
- run: node --version
- run: npm --version
- name: Install npm dependencies
run: npm ci
- name: Search users!
run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} npm start
- name: Push Changes
env:
ACTOR: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git remote set-url origin https://"$ACTOR":"$TOKEN"@github.com/"$REPO".git
git add .
git commit -am "Update Repo `date '-I'` By GitHub CI [ci skip]" || exit 0
git push origin master