Skip to content

Workflow file for this run

name: generate native definitions
on:
push:
branches: [dev]
schedule:
- cron: 0 0 * * SUN
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup natives
run: |
wget https://github.com/thelindat/fivem-lua-natives/archive/master.zip -O repo.zip
unzip repo.zip -d codegen
cd codegen
npm install
npm start
mv ./build/cfx /Lua/natives
mv -f * ../
cd ..
rm -f codegen
- name: update repo
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git diff-index --quiet HEAD || git commit -am "ci: generate native definitions"
git push