Test
This commit is contained in:
33
.github/workflows/config.yml
vendored
33
.github/workflows/config.yml
vendored
@@ -1,32 +1,35 @@
|
|||||||
name: Update Installer Config
|
name: Update Installer Config
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-config:
|
update-config:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Lua
|
- name: Install Lua
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y lua5.3
|
sudo apt-get install -y lua5.3
|
||||||
|
|
||||||
- name: Generate Config
|
- name: Generate Config
|
||||||
run: |
|
run: |
|
||||||
lua scripts/generate-config.lua
|
lua tools/generate-config.lua
|
||||||
run: |
|
|
||||||
|
- name: Commit and Push Changes
|
||||||
|
run: |
|
||||||
git config --global user.name 'github-actions[bot]'
|
git config --global user.name 'github-actions[bot]'
|
||||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
||||||
git add release/basalt.lua
|
git add config.lua
|
||||||
git commit -m 'Minify all Lua files into project bundle'
|
git commit -m "Update installer config" || exit 0
|
||||||
git push
|
git push
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
@@ -198,5 +198,4 @@ function basalt.getAPI(name)
|
|||||||
return elementManager.getAPI(name)
|
return elementManager.getAPI(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
return basalt
|
return basalt
|
||||||
Reference in New Issue
Block a user