Compare commits
2 commits
30d564eb4f
...
f3462839b5
Author | SHA1 | Date | |
---|---|---|---|
f3462839b5 | |||
3853e5f0b9 |
2 changed files with 18 additions and 7 deletions
|
@ -14,10 +14,10 @@ jobs:
|
||||||
- run: spcd-build-project
|
- run: spcd-build-project
|
||||||
- run: spcd-browse-workspace
|
- run: spcd-browse-workspace
|
||||||
- run: spcd-synchronize
|
- run: spcd-synchronize
|
||||||
- name: Fetch num squared
|
- name: Fetch num squared
|
||||||
id: get_square
|
id: get_square
|
||||||
uses: ./ # Uses an action in the root directory
|
uses: ./ # Uses an action in the root directory
|
||||||
# or use a released Github Action
|
# or use a released Github Action
|
||||||
# uses: shipyard/github-action/fetch-shipyard-env@1.0.0
|
# uses: shipyard/github-action/fetch-shipyard-env@1.0.0
|
||||||
with:
|
with:
|
||||||
num: 11
|
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
|
Loading…
Add table
Reference in a new issue