multiply
Some checks failed
/ job (push) Failing after 1m12s

This commit is contained in:
Marc Beninca 2024-10-14 13:40:03 +02:00
parent 315aee2f21
commit 79a02a08f1
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
4 changed files with 11 additions and 13 deletions

View file

@ -16,4 +16,5 @@ jobs:
- run: spcd-synchronize - run: spcd-synchronize
- uses: ./spcd/synchronize - uses: ./spcd/synchronize
with: with:
num: 11 firstarg: 2
secondarg: 4

View file

@ -1,11 +0,0 @@
import os
num = os.environ.get("INPUT_NUM")
if num:
try:
num = int(num)
except Exception:
exit("ERROR: the INPUT_NUM provided ({num}) is not an integer")
print(num**2)
else:
num = 1

8
multiply.py Normal file
View file

@ -0,0 +1,8 @@
import os
try:
num1 = int(os.environ.get("INPUT_FIRSTARG"))
num2 = int(os.environ.get("INPUT_SECONDARG"))
except Exception:
exit(f"integer error for {num1} or {num2}")
print(num1 * num2)

View file

@ -4,4 +4,4 @@ inputs:
runs: runs:
using: composite using: composite
steps: steps:
- run: python3 -m get_num_square - run: python3 -m multiply