2020-05-22 00:28:22 +02:00
|
|
|
name: Build
|
|
|
|
on:
|
|
|
|
push:
|
2020-05-22 00:38:47 +02:00
|
|
|
branches:
|
|
|
|
- master
|
2020-05-22 00:52:47 +02:00
|
|
|
paths:
|
|
|
|
- degoogle.yml
|
2020-05-24 02:35:07 +02:00
|
|
|
- md/*.md
|
2020-05-22 00:28:22 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 13.x
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm i
|
|
|
|
- name: Build
|
2020-05-22 00:48:12 +02:00
|
|
|
run: node _build.js
|
2020-05-22 00:28:22 +02:00
|
|
|
- name: Commit
|
|
|
|
run: |
|
|
|
|
git add README-test.md
|
|
|
|
git config --local user.email "action@github.com"
|
|
|
|
git config --local user.name "GitHub Action"
|
2020-05-22 04:52:40 +02:00
|
|
|
git commit -m "Generated README.md"
|
2020-05-22 00:28:22 +02:00
|
|
|
- name: Push
|
|
|
|
uses: ad-m/github-push-action@master
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2020-05-22 00:44:08 +02:00
|
|
|
branch: master
|