feat: add GAMES_LIST.md action (#637)

* feat: add action

* oops, wrong tool script

* purposely wrong commit changing GAMES_LIST badly

* revert last commit

* change GAMES_LIST

* revert last commit

* add random entry in games.js

* revert last commit
This commit is contained in:
CosminPerRam 2024-09-15 21:25:30 +03:00 committed by GitHub
parent 30ed54dfcd
commit 2fea903517
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

31
.github/workflows/games_list.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Games List Markdown Validation
on:
push:
paths:
- "lib/games.js"
- ".github/workflows/games_list.yml" # This action
pull_request:
paths:
- "lib/games.js"
- ".github/workflows/games_list.yml" # This action
workflow_dispatch:
jobs:
check_file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Run games list generation
run: node tools/generate_games_list.js
- name: Check for changes
run: git diff --exit-code GAMES_LIST.md