This is an automated email from the ASF dual-hosted git repository.
ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new b43f050 Go version GHA: Get SHA for env file (#6592)
b43f050 is described below
commit b43f050aa1c628f9980dd504e24d7dd0b9d300ac
Author: Zach Hoffman <[email protected]>
AuthorDate: Mon Feb 28 16:51:00 2022 -0800
Go version GHA: Get SHA for env file (#6592)
---
.github/actions/pr-to-update-go/pr_to_update_go/go_pr_maker.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/actions/pr-to-update-go/pr_to_update_go/go_pr_maker.py
b/.github/actions/pr-to-update-go/pr_to_update_go/go_pr_maker.py
index d5c02e4..2119f44 100644
--- a/.github/actions/pr-to-update-go/pr_to_update_go/go_pr_maker.py
+++ b/.github/actions/pr-to-update-go/pr_to_update_go/go_pr_maker.py
@@ -323,7 +323,7 @@ class GoPRMaker:
env_path = os.path.join(os.path.dirname(go_version_file),
".env")
kwargs["path"] = env_path
kwargs["content"] = f"GO_VERSION={go_version}\n"
- kwargs["sha"] = self.file_contents(go_version_file,
source_branch_name).sha
+ kwargs["sha"] = self.file_contents(env_path,
source_branch_name).sha
commit: Commit = self.repo.update_file(**kwargs)["commit"]
print(f"Updated {env_path} on {self.repo.name}")
return commit