Skip to content

generate

generate #11

Workflow file for this run

name: Generate blueprint data
on:
workflow_dispatch:
jobs:
generate:
name: Generate
runs-on: ubuntu-latest
steps:
- name: Install Lua
uses: leafo/gh-actions-lua@v10
# - name: Checks and balances
# run: |
# lua -v
# python -v
# pwsh -v
# git -v
- name: Checkout spooky db code
uses: actions/checkout@v4
with: # todo: remove when done
ref: feature/generate-workflow-setup-02 # todo: remove when done
- name: Checkout FAForever blueprints and lua files
uses: actions/checkout@v4
with:
repository: FAForever/fa
path: fa
sparse-checkout-cone-mode: false
sparse-checkout: |
*.bp
*.lua
- name: Checkout Nomads blueprints and lua files
uses: actions/checkout@v4
with:
repository: FAForever/nomads
path: nomads
sparse-checkout-cone-mode: false
sparse-checkout: |
*.bp
- name: Run the power shell script
run: |
#!/bin/bash
mkdir temp
mkdir temp/units
mkdir temp/lua
mv -f fa/units/* temp/units
mv -f nomads/units/* temp/units
mv fa/lua/version.lua temp/lua/version.lua
ls
pwsh tools/index.ps1 -inputUnits "temp/units" -inputLua "temp/Lua"