Compare commits
11 commits
eeace1ef8c
...
315aee2f21
Author | SHA1 | Date | |
---|---|---|---|
315aee2f21 | |||
cbfd53922f | |||
15bec101c6 | |||
dc4e6fbb36 | |||
6882d1cc9b | |||
a4a394616c | |||
f03b9e26fc | |||
968ce11438 | |||
7dd24da740 | |||
d7dc9cb284 | |||
2098a67a6e |
5 changed files with 21 additions and 12 deletions
|
@ -14,3 +14,6 @@ jobs:
|
|||
- run: spcd-build-project
|
||||
- run: spcd-browse-workspace
|
||||
- run: spcd-synchronize
|
||||
- uses: ./spcd/synchronize
|
||||
with:
|
||||
num: 11
|
||||
|
|
12
build.sh
12
build.sh
|
@ -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
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