Build readme file #18802
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 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 | |