Skip to content

Commit

Permalink
fix: foreach variables for glob
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 29, 2025
1 parent b535db5 commit 9c927cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ jobs:
# Upload to NuGet
- name: Upload to NuGet (DryRun=${{ inputs.dry-run }})
if: ${{ inputs.nuget-push }}
run: dotnet run --project "./src/CysharpActions/CysharpActions.csproj" --no-launch-profile -- nuget-push --nuget-path-string "${{ inputs.nuget-path }}" --apiKey "${{ steps.op-load-secret.outputs.NUGET_KEY }}" ${{ inputs.dry-run && '--dry-run' || '' }}
run: dotnet run --project "./src/CysharpActions/CysharpActions.csproj" --no-launch-profile -- nuget-push --nuget-path-string "${{ inputs.nuget-path }}" --api-key "${{ steps.op-load-secret.outputs.NUGET_KEY }}" ${{ inputs.dry-run && '--dry-run' || '' }}

# Clean up
- name: Clean up. Wait 60s and delete release if dry-run or failure. (dry-run=${{ inputs.dry-run }}})
Expand Down
2 changes: 1 addition & 1 deletion src/CysharpActions/Commands/CreateReleaseCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public async Task UploadAssetFilesAsync(string[] assetPaths)
// Is Wildcard?
foreach (var file in GlobFiles.EnumerateFiles(path))
{
await UploadCoreAsync(tag, path);
await UploadCoreAsync(tag, file);
}
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/CysharpActions/Commands/NuGetCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public async Task PushAsync(IEnumerable<string> nugetPaths)
// Is Wildcard?
foreach (var file in GlobFiles.EnumerateFiles(path))
{
await PushCoreAsync(path, apiKey, dryRun);
await PushCoreAsync(file, apiKey, dryRun);
}
}
else
Expand Down

0 comments on commit 9c927cd

Please sign in to comment.