Skip to content

Commit

Permalink
Testing the MONGO_CONNECT secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Curiosit committed Mar 2, 2024
1 parent dbfdbbc commit 1bb9463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
env:
FUNCTION_SCHEMA_FILE_NAME: functionSchema.json
SPECKLE_AUTOMATE_URL: https://automate.speckle.dev
MONGO_CONNECT: ${{ secrets.MONGO_CONNECT }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
Expand Down
3 changes: 3 additions & 0 deletions SpeckleAutomateDotnetExample/AutomateFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ FunctionInputs functionInputs
.Flatten()
.Count(b => b.speckle_type == functionInputs.SpeckleTypeToCount);

var mongoConnect = Environment.GetEnvironmentVariable("MONGO_CONNECT");
Console.WriteLine($"MONGO_CONNECT: {mongoConnect}");

Console.WriteLine($"Counted {count} objects");
automationContext.MarkRunSuccess($"Counted {count} objects");
}
Expand Down

0 comments on commit 1bb9463

Please sign in to comment.