generate #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
mkdir temp | |
mkdir temp/units | |
mkdir temp/lua | |
mv fa/units temp/units | |
mv nomads/units temp/units | |
mv fa/lua/version.lua temp/lua/version.lua | |
ls -al temp | |
pwsh /tools.index.ps1 -inputUnits "temp/units" -inputLua "temp/Lua" | |