wip
This commit is contained in:
commit
03ebf47b9f
33 changed files with 1657 additions and 0 deletions
14
src/core/GitHubEnvironmentContext.cs
Normal file
14
src/core/GitHubEnvironmentContext.cs
Normal 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");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue