Skip to content

Commit

Permalink
Update ejercicio4.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EperezStemdo authored May 1, 2024
1 parent 1d4e87c commit 1d4cecf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ejercicio4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ jobs:
run: |
if [[ "$inputs.operacion" == '+' ]]; then
resultado=$((inputs.valor1 + inputs.valor2))
resultado=$((inputs.valor1+inputs.valor2))
fi
if [[ "$inputs.operacion" == "-" ]]; then
resultado=$((inputs.valor1 - inputs.valor2))
resultado=$((inputs.valor1-inputs.valor2))
fi
if [[ "$github.event.inputs.operacion" == "/" ]]; then
resultado=$((github.event.inputs.valor1 / github.event.inputs.valor2))
resultado=$((github.event.inputs.valor1/github.event.inputs.valor2))
fi
if [[ "$github.event.inputs.operacion" == "*" ]]; then
resultado=$((github.event.inputs.valor1 * github.event.inputs.valor2))
resultado=$((github.event.inputs.valor1*github.event.inputs.valor2))
fi
echo $resultado
Expand Down

0 comments on commit 1d4cecf

Please sign in to comment.