You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
864 B

10 months ago
  1. name: Parse raylib_api
  2. on:
  3. workflow_dispatch:
  4. push:
  5. paths:
  6. - "src/raylib.h"
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v4
  12. - name: Update parse files
  13. working-directory: parser
  14. run: |
  15. make raylib_api
  16. mv raylib_api.* output
  17. - name: Diff parse files
  18. id: diff
  19. run: |
  20. git add -N parser
  21. git diff --name-only --exit-code
  22. continue-on-error: true
  23. - name: Commit parse files
  24. if: steps.diff.outcome == 'failure'
  25. run: |
  26. set -x
  27. git config user.email "github-actions[bot]@users.noreply.github.com"
  28. git config user.name "github-actions[bot]"
  29. git add parser
  30. git commit -m "Update raylib_api.* by CI"
  31. git push