Skip to content

Add stormworks addon lua #262

Add stormworks addon lua

Add stormworks addon lua #262

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
style:
name: Run StyLua
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout LLS-Addons
# Use custom action to get submodules
# This allows us to get submodules that live on GitLab
- uses: dsaltares/[email protected]
name: Get submodule fetching action
with:
token: ${{ secrets.GITHUB_TOKEN }}
repo: carsakiller/get-submodules-action
file: dist.zip
target: submodule-action.zip
- name: Unzip submodule fetching action
run: unzip submodule-action.zip -d submodule-action
- uses: ./submodule-action/dist
name: Get all submodules
- uses: JohnnyMorganz/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check addons
build:
name: Get Addon Metadata
runs-on: ubuntu-latest
needs: style
if: ${{ github.event_name == 'push'}}
permissions:
contents: write
steps:
- uses: actions/checkout@v3
name: Checkout LLS-Addons
# Use custom action to get submodules
# This allows us to get submodules that live on GitLab
- uses: dsaltares/[email protected]
name: Get submodule fetching action
with:
token: ${{ secrets.GITHUB_TOKEN }}
repo: carsakiller/get-submodules-action
file: dist.zip
target: submodule-action.zip
- name: Unzip submodule fetching action
run: unzip submodule-action.zip -d submodule-action
- uses: ./submodule-action/dist
name: Get all submodules
# Custom action that gets metadata on each addon
- uses: dsaltares/[email protected]
name: Get submodule metadata fetching action
with:
token: ${{ secrets.GITHUB_TOKEN }}
repo: LuaLS/LLS-Addons-Action
file: dist.zip
target: action.zip
- name: Unzip custom action
run: unzip action.zip -d action
- uses: ./action/dist
name: Get Addon Metadata
# Commit new metadata
- name: Commit Metadata
uses: stefanzweifel/[email protected]
with:
commit_message: "chore: Update Addon Metadata"
file_pattern: addons/*/info.json