With Github actions, each 'shell' has a different way of setting environment variables.
here's a list
env: MSG: Hello
name: Notify Slack via Email on PR Merge | |
on: | |
pull_request: | |
branches: [ main ] | |
types: | |
- closed | |
jobs: | |
notify: |
/* | |
<ItemGroup> | |
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" /> | |
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1" /> | |
<PackageReference Include="Serilog.Extensions.Logging" Version="7.0.0" /> | |
<PackageReference Include="Serilog.Formatting.Compact" Version="1.1.0" /> | |
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" /> | |
</ItemGroup> | |
namespace SomeLambdaFunction | |
{ | |
public class ApplicationSettings | |
{ | |
private const string ConnectionStringEnvironmentalVariableName = "MY_POSTGRES_CONNECTIONSTRING"; | |
public ApplicationSettings() | |
{ | |
var isMissingEnvironmentalVariableData = false; |
/* | |
Needs these package in the csproj | |
<ItemGroup> | |
<PackageReference Include="CSharpFunctionalExtensions" Version="2.38.1" /> | |
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.5.2" /> | |
<PackageReference Include="MediatR" Version="12.0.1" /> | |
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.5" /> | |
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" /> |
// Based on https://studio3t.com/knowledge-base/articles/mongodb-query-performance/ | |
// THESE ARE THE Database.Collection | |
var scope = [ | |
"apps.appInstalls", | |
"apps.apps" | |
] | |
// These are the operations to check | |
var generalOps = [ | |
"query", |
With Github actions, each 'shell' has a different way of setting environment variables.
here's a list
env: MSG: Hello
NODE DOCKER VERSIONS: https://hub.docker.com/_/node
docker run --rm -it -v ${PWD}:/src/someProject --name npm-stuff node /bin/bash
-- Get a list of all indicies | |
GET /_cat/indices | |
-- | |
GET /_cat/aliases <-- get the aliases to the indicies | |
-- normal searching |
To access any locked/private resources in GitHub, you need a PAT. This is a specific access key that you can create to unlock whatever resource you own.
includeIf
hack (unfortunately)git init
already occur on it..gitconfig
file.gitconfig
files where you want have separate settings for different work / personal / serious-projects.gitdir/i
.. most examples say to use gitdir
but that fails on Windows OS.