Skip to content

Commit

Permalink
trying more with secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed May 14, 2024
1 parent ca9cd65 commit 739898b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.x.x
- name: Set up secret file
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo $GITHUB_TOKEN >> secrets.txt
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build Installers
env:
RUN_ID: ${{ github.run_id }}
Expand Down
2 changes: 1 addition & 1 deletion Build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ IEnumerable<string> GetFiles(string d)
BUILD_INSTALLERS,
async () =>
{
var token = File.ReadAllText("secrets.txt");
var token = File.ReadAllText(".env");
var runId = Environment.GetEnvironmentVariable("RUN_ID");
Console.WriteLine($"Found: {runId} and {token.Length}");
await Github.BuildInstallers(token, runId).ConfigureAwait(false);
Expand Down

0 comments on commit 739898b

Please sign in to comment.