Build #30675
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: Build | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "0 * * * *" | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm ci | |
- name: Build README.md | |
id: build | |
run: npm run build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: Update README.md (${{steps.build.outputs.TIMESTAMP}}) | |
author_name: Auto5958 | |
author_email: 69833949+Auto5958@users.noreply.github.com | |
add: README.md last-dev-commit.txt --force | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} |