Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
- name: Identify active project
id: set_folder
run: |
#Padrão de segurança
FOLDER="WEIGHT"
# Corrigido: adicionados os espaços e corrigido 'WEIGHT.txt'
if [ -f "scenarios/WEIGHT.txt" ]; then
# Padrão de segurança (nome da pasta em minúsculo, igual ao disco)
FOLDER="weight"

# Detecta o cenário ativo pelo .md que permanece em scenarios/
if [ -f "scenarios/WEIGHT.md" ]; then
FOLDER="weight"
elif [ -f "scenarios/TEMPERATURE.txt" ]; then
elif [ -f "scenarios/TEMPERATURE.md" ]; then
FOLDER="temperature"
elif [ -f "scenarios/LIGHT.txt" ]; then
FOLDER="light"
elif [ -f "scenarios/LIGHT.md" ]; then
FOLDER="light"
fi

echo "project_folder=$FOLDER" >> $GITHUB_OUTPUT
Expand Down
Loading
Loading