diff --git a/.github/workflows/update_readme_api.yml b/.github/workflows/update_readme_api.yml index f2153719..28857f95 100644 --- a/.github/workflows/update_readme_api.yml +++ b/.github/workflows/update_readme_api.yml @@ -1,25 +1,22 @@ name: API to readme -'on': +on: schedule: - - cron: 31 14 * * * + - cron: "31 14 * * *" jobs: update_readme_api: runs-on: ubuntu-latest steps: - - name: checkout - uses: actions/checkout@v2 - - name: doc - uses: actions/setup-node@v1 + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 with: - node-version: 14.4.0 + node-version: [-10, -11, -12, -13, -14, 14.4.0] - run: npm install - run: npm run docs - - name: pr - uses: gr2m/create-or-update-pull-request-action@v1.x + - uses: gr2m/create-or-update-pull-request-action@v1.x env: - GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - path: README.md - title: Sync API into README - branch: readme-api - commit-message: 'docs(README): sync API' + path: "README.md" + title: "Sync API into README" + branch: "readme-api" + commit-message: "docs(README): sync API"