Compare commits

...

10 commits

Author SHA1 Message Date
eeace1ef8c
spcd/sync
All checks were successful
/ job (push) Successful in 3m52s
2024-07-30 23:06:12 +02:00
9b4d1e7d35
−id
All checks were successful
/ job (push) Successful in 3m24s
2024-07-30 22:46:20 +02:00
c033ad6391
↓ id
All checks were successful
/ job (push) Successful in 3m30s
2024-07-30 22:38:29 +02:00
33bcfdc4d3
indent 2024-07-30 22:36:36 +02:00
51ef1a8ccd
actions 2024-07-30 22:36:04 +02:00
72127a4e17
shrink/action
All checks were successful
/ job (push) Successful in 3m37s
2024-07-30 22:26:40 +02:00
f3462839b5
indent
Some checks failed
/ job (push) Failing after 3m38s
2024-07-30 22:15:58 +02:00
3853e5f0b9
python 2024-07-30 22:08:05 +02:00
30d564eb4f
action 2024-07-30 22:07:56 +02:00
1e173bb853
workflow 2024-07-30 22:00:11 +02:00
3 changed files with 21 additions and 0 deletions

View file

@ -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
View 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

View file

@ -0,0 +1,7 @@
inputs:
num:
required: true
runs:
using: composite
steps:
- run: python3 -m get_num_square