Skip to content

Commit d54bf23

Browse files
committed
Pass GHA default environment variables
1 parent fdb42b7 commit d54bf23

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/manageiq/cross_repo/runner/github.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ def self.available?
1313

1414
private
1515

16+
def env_vars
17+
super.merge(
18+
"CI" => "true",
19+
"GITHUB_BASE_REF" => nil, # TODO: test_repo.base_ref,
20+
"GITHUB_REF_NAME" => test_repo.ref || test_repo.sha,
21+
"GITHUB_REPOSITORY" => test_repo.identifier,
22+
"GITHUB_REPOSITORY_OWNER" => test_repo.org,
23+
"GITHUB_SERVER_URL" => "https://github.com"
24+
)
25+
end
26+
1627
def ci_config
1728
github_config = YAML.load_file(CONFIG_FILE)
1829

0 commit comments

Comments
 (0)