Compare commits
10 commits
315aee2f21
...
eeace1ef8c
Author | SHA1 | Date | |
---|---|---|---|
eeace1ef8c | |||
9b4d1e7d35 | |||
c033ad6391 | |||
33bcfdc4d3 | |||
51ef1a8ccd | |||
72127a4e17 | |||
f3462839b5 | |||
3853e5f0b9 | |||
30d564eb4f | |||
1e173bb853 |
3 changed files with 21 additions and 0 deletions
|
@ -14,3 +14,6 @@ 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:
|
||||||
|
num: 11
|
||||||
|
|
11
get_num_square.py
Normal file
11
get_num_square.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
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
|
7
spcd/synchronize/action.yaml
Normal file
7
spcd/synchronize/action.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
inputs:
|
||||||
|
num:
|
||||||
|
required: true
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- run: python3 -m get_num_square
|
Loading…
Reference in a new issue