Skip to content

Commit c32d81d

Browse files
committed
Fix example submodule not fetched
1 parent ba9b668 commit c32d81d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -e
44
mkdir --parents ${HOME}/.bin/
55
export PATH="$HOME/.cargo/bin:${HOME}/.bin:$PATH"
66

7+
[ -z $WORKDIR ] || cd $WORKDIR
78
for cmd in "$@"; do
89
echo "Running '$cmd'..."
910
if sh -c "$cmd"; then

.github/main.workflow

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,13 @@ action "Smoke tests" {
5858
runs = "./.github/entrypoint.sh"
5959
args = [
6060
"git submodule update --init --recursive",
61-
"cd examples/xstate/nodejs",
6261
"npm install",
6362
"scrap generate src/${filestem}.scl --format xstate --as typescript > src/fsm/${filestem}.ts",
6463
"scrap generate src/${filestem}.scl --format xstate --as javascript >> src/fsm/${filestem}.ts",
6564
"npx tsc --build",
6665
"node dist/index.js",
6766
]
68-
env = { filestem = "light" }
69-
secrets = ["GITHUB_TOKEN"]
67+
env = { WORKDIR = "examples/xstate/nodejs", filestem = "light" }
7068
}
7169

7270
action "Perf cargo" {

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "examples/xstate/nodejs"]
22
path = examples/xstate/nodejs
3-
url = git@github.com:DrSensor/nodejs-scdlang_xstate.git
3+
url = https://github.com/DrSensor/nodejs-scdlang_xstate.git

0 commit comments

Comments
 (0)