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:
parent
547b9fd922
commit
68f49c6c6c
3 changed files with 15 additions and 0 deletions
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue