fix: discovery with more than one compatible manifest

This commit is contained in:
Erica Marigold 2024-08-13 20:40:54 +05:30
parent db64ed031f
commit ca252141e0
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1
2 changed files with 7 additions and 1 deletions

View file

@ -46,7 +46,7 @@ runs:
- name: Discover manifest file
id: manifest
run: |
manifest_path=$(find ${{ inputs.path }} -maxdepth 1 -name "rokit.toml" -o -name "aftman.toml" -o -name "foreman.toml")
manifest_path=$(find ${{ inputs.path }} -maxdepth 1 -name "rokit.toml" -o -name "aftman.toml" -o -name "foreman.toml" | head -n 1)
echo "::debug::Discovered manifest path: $manifest_path"
echo "path=$manifest_path" >> $GITHUB_OUTPUT
shell: bash

6
rokit.toml Normal file
View file

@ -0,0 +1,6 @@
[tools]
luau-lsp = "JohnnyMorganz/luau-lsp@1.31.0"
lune = "CompeyDev/lune@0.8.7"
# moonwave-extractor = "evaera/moonwave@1.1.3"
selene = "Kampfkarren/selene@0.27.1"
stylua = "JohnnyMorganz/StyLua@0.20.0"