Skip to content

Build readme file #25084

Build readme file

Build readme file #25084

Workflow file for this run

name: Build readme file
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *' # Every hour
jobs:
Build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 1
- name: Use Node.js (dependency)
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- 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