Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ff005e928 | |||
| 8745f492df | |||
| 67c4cf009b | |||
| 2a599c5fcc | |||
| d3a8cffcf7 | |||
| 41abbb50c1 |
@@ -15,32 +15,13 @@ on:
|
||||
# default: 'Just CI Build'
|
||||
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: vaibhavgawali/dotnet-node-python-openjdk:latest
|
||||
needs: checkout-code
|
||||
steps:
|
||||
- name: Download source code
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: source-code
|
||||
path: .
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Restore dependencies
|
||||
run: |
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
namespace s8n_runtime;
|
||||
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace s8n_runtime;
|
||||
|
||||
public class WorkflowRuntimeRunner
|
||||
{
|
||||
private static readonly JsonSerializerOptions serializerOptions = new(JsonSerializerDefaults.Web)
|
||||
@@ -43,7 +43,8 @@ public class WorkflowRuntimeRunner
|
||||
}
|
||||
else
|
||||
{
|
||||
runtime = JsonSerializer.Deserialize<TWorkflow>(File.OpenRead(filePath), serializerOptions)!;
|
||||
using var stream = File.OpenRead(filePath);
|
||||
runtime = JsonSerializer.Deserialize<TWorkflow>(stream, serializerOptions)!;
|
||||
}
|
||||
runtime.Prepare();
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<!-- Package properties below -->
|
||||
<IsPackable>true</IsPackable>
|
||||
<PackageId>Sharp8N.Runtime</PackageId>
|
||||
<Version>1.0.10</Version>
|
||||
<Version>1.0.12</Version>
|
||||
<Authors>Vitalick S</Authors>
|
||||
<Company>Sharp8N</Company>
|
||||
<Description>Sharp8N runtime library, that allows run s8n workflows</Description>
|
||||
|
||||
Reference in New Issue
Block a user