From 2fea903517a74275c9f12d16919f7a4a55cb2096 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sun, 15 Sep 2024 21:25:30 +0300 Subject: [PATCH] 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 --- .github/workflows/games_list.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/games_list.yml diff --git a/.github/workflows/games_list.yml b/.github/workflows/games_list.yml new file mode 100644 index 0000000..651c4d9 --- /dev/null +++ b/.github/workflows/games_list.yml @@ -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