Skip to content

Build readme file #19035

Build readme file

Build readme file #19035

Workflow file for this run

name: Build readme file
on:
#push:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 1
- name: Use Node.js (dependency)
uses: actions/setup-node@v3
with:
node-version: 16
- name: Completion Table
run: node updateCompletionTable.js;
- name: Check for modified files
id: git-check
run: echo modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi) >> $GITHUB_OUTPUT
- name: Push
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.email "[email protected]"
git config --global user.name "Bot-A0"
git add .
git commit -am "📜 Update README table (🛠️ from Github Actions)" || true
git push || git pull --rebase && git push