Skip to content

Commit d9ac4ae

Browse files
committed
Fix secret formatting, tweak targets and emit first 5 chars of api key for debugging.
1 parent e4279d6 commit d9ac4ae

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
runs-on: ubuntu-latest
1414
env:
15-
FEEDZ_LITTLEFORKER_API_KEY: '{{secrets.FEEDZ_LITTLEFORKER_API_KEY}}'
15+
FEEDZ_LITTLEFORKER_API_KEY: ${{secrets.FEEDZ_LITTLEFORKER_API_KEY}}
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v1

build/Program.cs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,13 @@ static void Main(string[] args)
4242

4343
Target(Build, () => Run("dotnet", "build LittleForker.sln -c Release"));
4444

45-
Target(
46-
Test,
45+
Target(Test,
4746
DependsOn(Build),
48-
ForEach("LittleForker.Tests"),
49-
project => Run("dotnet", $"test src/{project}/{project}.csproj -c Release -r {ArtifactsDir} --no-build -l trx;LogFileName={project}.xml --verbosity=normal"));
47+
() => Run("dotnet", $"test src/LittleForker.Tests/LittleForker.Tests.csproj -c Release -r {ArtifactsDir} --no-build -l trx;LogFileName=LittleForker.Tests.xml --verbosity=normal"));
5048

51-
Target(
52-
Pack,
49+
Target(Pack,
5350
DependsOn(Build),
54-
ForEach("LittleForker"),
55-
project => Run("dotnet", $"pack src/{project}/{project}.csproj -c Release -o {ArtifactsDir} --no-build"));
51+
() => Run("dotnet", $"pack src/LittleForker/LittleForker.csproj -c Release -o {ArtifactsDir} --no-build"));
5652

5753
Target(Publish, DependsOn(Pack), () =>
5854
{
@@ -66,7 +62,7 @@ static void Main(string[] args)
6662
Console.WriteLine("Feedz API key not available. Packages will not be pushed.");
6763
return;
6864
}
69-
Console.WriteLine("Feedz API Key available. Pushing packages to Feedz...");
65+
Console.WriteLine($"Feedz API Key available '{apiKey.Substring(0, 5)}...'. Pushing packages to Feedz...");
7066
foreach (var packageToPush in packagesToPush)
7167
{
7268
Run("dotnet", $"nuget push {packageToPush} -s https://f.feedz.io/dh/oss-ci/nuget/index.json -k {apiKey} --skip-duplicate", noEcho: true);

0 commit comments

Comments
 (0)