This commit is contained in:
Louis Seubert 2026-02-12 21:18:29 +01:00
commit 03ebf47b9f
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
33 changed files with 1657 additions and 0 deletions

View file

@ -0,0 +1,14 @@
// Copyright (c) The Geekeey Authors
// SPDX-License-Identifier: EUPL-1.2
namespace Geekeey.Core;
/// <summary>
/// Provides access to GitHub Actions environment context from environment variables.
/// </summary>
internal sealed class GitHubEnvironmentContext : IGitHubEnvironmentContext
{
public string? BaseRef => Environment.GetEnvironmentVariable("GITHUB_BASE_REF");
public string? HeadRef => Environment.GetEnvironmentVariable("GITHUB_HEAD_REF");
}