Search users by location! #36754
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |