Awesome loker CI #1225
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: Awesome loker CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: | |
schedule: | |
- cron: "0 2 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node_version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node_version }} | |
cache: "npm" | |
- name: Install dependencies | |
run: npm i -g yarn && yarn install | |
- name: Start update loker data | |
run: yarn start | |
- name: Commit and push if it changed | |
run: |- | |
git config user.name "satyawikananda" | |
git config user.email "${{ secrets.EMAIL }}" | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "chore(loker): Update loker" || exit 0 | |
git push |