forked from raysan5/raylib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update raylib_api.* by CI (raysan5#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>
- Loading branch information
1 parent
710e811
commit 0a25a3e
Showing
5 changed files
with
580 additions
and
412 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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
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
Oops, something went wrong.