From 5246ac217fe81aa471f845e3cf055157f2e1425f Mon Sep 17 00:00:00 2001 From: seiren Date: Sun, 31 Dec 2023 17:40:20 +0900 Subject: [PATCH] wip: add parse.yml --- .github/workflows/parse.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/parse.yml diff --git a/.github/workflows/parse.yml b/.github/workflows/parse.yml new file mode 100644 index 000000000..4b915a2ab --- /dev/null +++ b/.github/workflows/parse.yml @@ -0,0 +1,37 @@ +name: Parse raylib_api + +on: + workflow_dispatch: + push: + paths: + - "src/raylib.h" +# todo +# pull_request: +# paths: +# - "src/raylib.h" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Update parse files + working-directory: parser + run: | + make raylib_api + mv raylib_api.* output + + - name: Diff parse files + id: diff + run: | + git add -N parser + git diff --name-only --exit-code + continue-on-error: true + + - name: Commit parse files + if: steps.diff.outcome == 'failure' + run: | + set -x + echo wip