2021-12-31 12:12:40 +08:00
|
|
|
name: genbindings
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-02-20 05:37:12 +08:00
|
|
|
branches: dev
|
2022-07-08 15:34:23 +08:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2023-12-14 01:46:41 +08:00
|
|
|
- '**/*.md.in'
|
|
|
|
- 'docs/**'
|
2023-12-21 23:59:24 +08:00
|
|
|
- '.github/workflows/publish.yml'
|
|
|
|
- 'tools/ci/make-pkg.ps1'
|
2022-07-19 18:50:49 +08:00
|
|
|
|
|
|
|
workflow_dispatch:
|
2021-12-31 12:12:40 +08:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
2024-02-02 00:42:42 +08:00
|
|
|
- uses: actions/checkout@v4
|
2021-12-31 12:12:40 +08:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
|
|
|
|
- name: Setup Python
|
2023-03-25 11:14:51 +08:00
|
|
|
uses: actions/setup-python@v4
|
2023-04-02 16:04:19 +08:00
|
|
|
with:
|
2023-09-26 10:46:22 +08:00
|
|
|
python-version: '3.11.5'
|
2021-12-31 12:12:40 +08:00
|
|
|
|
|
|
|
- name: Build
|
2023-06-29 19:46:52 +08:00
|
|
|
run: tools\ci\genbindings.ps1
|
2022-01-01 21:27:39 +08:00
|
|
|
|
2024-01-22 21:46:55 +08:00
|
|
|
- name: Create pull request
|
|
|
|
if: ${{ env.BINDING_NO_CHANGES != 'true' }}
|
|
|
|
id: cpr
|
2024-02-02 00:42:42 +08:00
|
|
|
uses: peter-evans/create-pull-request@v6
|
2022-01-01 21:27:39 +08:00
|
|
|
with:
|
2024-01-22 21:46:55 +08:00
|
|
|
token: ${{ secrets.AX_BOT_TOKEN }}
|
|
|
|
push-to-fork: axmol-bot/axmol
|
2024-02-02 00:42:42 +08:00
|
|
|
commit-message: Committing luabindings for commit ${{ env.LAST_COMMIT_HASH }}
|
2024-01-22 21:46:55 +08:00
|
|
|
signoff: false
|
|
|
|
branch: luabindings_for_${{ env.LAST_COMMIT_HASH }}
|
|
|
|
delete-branch: true
|
2024-02-02 00:42:42 +08:00
|
|
|
title: 'Committing luabindings for commit ${{ env.LAST_COMMIT_HASH }}'
|
2024-01-22 21:46:55 +08:00
|
|
|
body: |
|
|
|
|
RT
|
|
|
|
- Auto-generated by [create-pull-request][1]
|
|
|
|
|
|
|
|
[1]: https://github.com/peter-evans/create-pull-request
|
|
|
|
labels: |
|
2024-02-15 12:27:29 +08:00
|
|
|
lua-bindings
|
2024-01-22 21:46:55 +08:00
|
|
|
automated pr
|
|
|
|
pinned
|
|
|
|
assignees: axmol-bot
|
|
|
|
reviewers: halx99
|
|
|
|
draft: false
|
|
|
|
|
|
|
|
- name: Check outputs
|
|
|
|
if: ${{ steps.cpr.outputs.pull-request-number }}
|
|
|
|
run: |
|
|
|
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
|
|
|
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|