diff options
| author | seiren <[email protected]> | 2023-12-31 23:06:46 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-31 15:06:46 +0100 |
| commit | 0a25a3ed7051377d7966cec6c3a3555d8ee0d551 (patch) | |
| tree | c37b9d0dc752fad95bc5873faf48583e87c872cc /.github/workflows | |
| parent | 710e811b2768e573b3c1a9eb4883f7a552d3d101 (diff) | |
| download | raylib-0a25a3ed7051377d7966cec6c3a3555d8ee0d551.tar.gz raylib-0a25a3ed7051377d7966cec6c3a3555d8ee0d551.zip | |
Update raylib_api.* by CI (#3692)
* wip: add parse.yml
* Temporarily force run
* Auto commit parse files
* Update raylib_api.* by CI
* Remove temporary setting
* format
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/parse.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/parse.yml b/.github/workflows/parse.yml new file mode 100644 index 00000000..dcbd3e43 --- /dev/null +++ b/.github/workflows/parse.yml @@ -0,0 +1,37 @@ +name: Parse raylib_api
+
+on:
+ workflow_dispatch:
+ push:
+ 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
+ git config user.email "github-actions[bot]@users.noreply.github.com"
+ git config user.name "github-actions[bot]"
+ git add parser
+ git commit -m "Update raylib_api.* by CI"
+ git push
|
