Compare commits
12 commits
Author | SHA1 | Date | |
---|---|---|---|
5d722f98be | |||
79a02a08f1 | |||
315aee2f21 | |||
cbfd53922f | |||
15bec101c6 | |||
dc4e6fbb36 | |||
6882d1cc9b | |||
a4a394616c | |||
f03b9e26fc | |||
968ce11438 | |||
7dd24da740 | |||
d7dc9cb284 |
3 changed files with 21 additions and 0 deletions
|
@ -14,3 +14,7 @@ jobs:
|
||||||
- run: spcd-build-project
|
- run: spcd-build-project
|
||||||
- run: spcd-browse-workspace
|
- run: spcd-browse-workspace
|
||||||
- run: spcd-synchronize
|
- run: spcd-synchronize
|
||||||
|
- uses: ./spcd/synchronize
|
||||||
|
with:
|
||||||
|
firstarg: 2
|
||||||
|
secondarg: 4
|
||||||
|
|
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)
|
9
spcd/synchronize/action.yaml
Normal file
9
spcd/synchronize/action.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
inputs:
|
||||||
|
firstarg:
|
||||||
|
required: true
|
||||||
|
secondarg:
|
||||||
|
required: true
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- run: python3 -m multiply
|
Loading…
Reference in a new issue