5 Commits

Author SHA1 Message Date
1ff005e928 fix 2026-01-01 23:37:07 +03:00
8745f492df fix 2026-01-01 23:35:31 +03:00
67c4cf009b fix 2026-01-01 23:34:57 +03:00
2a599c5fcc fix compilation source 2026-01-01 23:34:16 +03:00
d3a8cffcf7 fix stream 2026-01-01 23:26:24 +03:00
3 changed files with 7 additions and 25 deletions

View File

@@ -15,32 +15,13 @@ on:
# default: 'Just CI Build' # default: 'Just CI Build'
jobs: jobs:
checkout-code:
runs-on: ubuntu-latest # Has Git + Node.js for checkout
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Needed for version detection if used
- name: Upload source code as artifact
uses: actions/upload-artifact@v3
with:
name: source-code
path: ./
retention-days: 1
build-and-publish: build-and-publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: vaibhavgawali/dotnet-node-python-openjdk:latest image: vaibhavgawali/dotnet-node-python-openjdk:latest
needs: checkout-code
steps: steps:
- name: Download source code - name: Checkout repository
uses: actions/download-artifact@v3 uses: actions/checkout@v3
with:
name: source-code
path: .
- name: Restore dependencies - name: Restore dependencies
run: | run: |

View File

@@ -1,8 +1,8 @@
namespace s8n_runtime;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace s8n_runtime;
public class WorkflowRuntimeRunner public class WorkflowRuntimeRunner
{ {
private static readonly JsonSerializerOptions serializerOptions = new(JsonSerializerDefaults.Web) private static readonly JsonSerializerOptions serializerOptions = new(JsonSerializerDefaults.Web)
@@ -43,7 +43,8 @@ public class WorkflowRuntimeRunner
} }
else else
{ {
runtime = JsonSerializer.Deserialize<TWorkflow>(File.OpenRead(filePath), serializerOptions)!; using var stream = File.OpenRead(filePath);
runtime = JsonSerializer.Deserialize<TWorkflow>(stream, serializerOptions)!;
} }
runtime.Prepare(); runtime.Prepare();

View File

@@ -11,7 +11,7 @@
<!-- Package properties below --> <!-- Package properties below -->
<IsPackable>true</IsPackable> <IsPackable>true</IsPackable>
<PackageId>Sharp8N.Runtime</PackageId> <PackageId>Sharp8N.Runtime</PackageId>
<Version>1.0.11</Version> <Version>1.0.12</Version>
<Authors>Vitalick S</Authors> <Authors>Vitalick S</Authors>
<Company>Sharp8N</Company> <Company>Sharp8N</Company>
<Description>Sharp8N runtime library, that allows run s8n workflows</Description> <Description>Sharp8N runtime library, that allows run s8n workflows</Description>