1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

feat: support GITHUB_REF_NAME & GITHUB_REF_TYPE (#1142)

* feat: support `_REF_NAME` & `_REF_TYPE`

* chore: fix `step_test::TestSetupEnv`

* fix: logic & test

* test: delete `GITHUB_REF_NAME`, `GITHUB_REF_TYPE`
This commit is contained in:
Kevin Wang 2022-05-08 10:23:19 -04:00 committed by GitHub
parent 547b9fd922
commit 68f49c6c6c
3 changed files with 15 additions and 0 deletions

View file

@ -18,6 +18,8 @@ type GithubContext struct {
EventName string `json:"event_name"`
Sha string `json:"sha"`
Ref string `json:"ref"`
RefName string `json:"ref_name"`
RefType string `json:"ref_type"`
HeadRef string `json:"head_ref"`
BaseRef string `json:"base_ref"`
Token string `json:"token"`