Compare commits

...

11 commits

Author SHA1 Message Date
315aee2f21
spcd/sync
All checks were successful
/ job (push) Successful in 1m10s
2024-10-13 23:41:48 +02:00
cbfd53922f
−id 2024-10-13 23:41:47 +02:00
15bec101c6
↓ id 2024-10-13 23:41:47 +02:00
dc4e6fbb36
indent 2024-10-13 23:41:47 +02:00
6882d1cc9b
actions 2024-10-13 23:41:47 +02:00
a4a394616c
shrink/action 2024-10-13 23:41:46 +02:00
f03b9e26fc
indent 2024-10-13 23:41:46 +02:00
968ce11438
python 2024-10-13 23:41:46 +02:00
7dd24da740
action 2024-10-13 23:41:46 +02:00
d7dc9cb284
workflow 2024-10-13 23:41:45 +02:00
2098a67a6e
out/web
All checks were successful
/ job (push) Successful in 1m9s
2024-10-13 23:41:32 +02:00
5 changed files with 21 additions and 12 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

View file

@ -1,12 +0,0 @@
#! /usr/bin/env bash
FILE="$(realpath "${BASH_SOURCE[0]}")"
ROOT="$(dirname "${FILE}")"
rsync \
--archive \
--delete-before \
--partial \
--progress \
--verbose \
"${ROOT}/in/" \
"${ROOT}/out/"

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