axmol/.github/workflows/genbindings.yml

60 lines
1.5 KiB
YAML
Raw Normal View History

name: genbindings
on:
push:
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:
jobs:
build:
runs-on: windows-latest
steps:
2024-02-02 00:42:42 +08:00
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup Python
2023-03-25 11:14:51 +08:00
uses: actions/setup-python@v4
with:
2023-09-26 10:46:22 +08:00
python-version: '3.11.5'
- name: Build
2023-06-29 19:46:52 +08:00
run: tools\ci\genbindings.ps1
2022-01-01 21:27:39 +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:
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 }}
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 }}'
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
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 }}"