parent
315aee2f21
commit
79a02a08f1
4 changed files with 11 additions and 13 deletions
|
@ -16,4 +16,5 @@ jobs:
|
|||
- run: spcd-synchronize
|
||||
- uses: ./spcd/synchronize
|
||||
with:
|
||||
num: 11
|
||||
firstarg: 2
|
||||
secondarg: 4
|
||||
|
|
|
@ -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
8
multiply.py
Normal 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)
|
|
@ -4,4 +4,4 @@ inputs:
|
|||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- run: python3 -m get_num_square
|
||||
- run: python3 -m multiply
|
||||
|
|
Loading…
Reference in a new issue