Compare commits

..

No commits in common. "f3462839b51ed36e797ad6bb21ea46031bd9addd" and "30d564eb4f528b6ba15fac892b148f0c9d1f7d17" have entirely different histories.

2 changed files with 7 additions and 18 deletions

View file

@ -14,10 +14,10 @@ jobs:
- run: spcd-build-project
- run: spcd-browse-workspace
- run: spcd-synchronize
- name: Fetch num squared
id: get_square
uses: ./ # Uses an action in the root directory
# or use a released Github Action
# uses: shipyard/github-action/fetch-shipyard-env@1.0.0
with:
num: 11
- name: Fetch num squared
id: get_square
uses: ./ # Uses an action in the root directory
# or use a released Github Action
# uses: shipyard/github-action/fetch-shipyard-env@1.0.0
with:
num: 11

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