[GITEA] the ref of a scheduled action is always the default branch
Since a scheduled action is only run from the default branch, it cannot be anything else. Refs: https://codeberg.org/forgejo/forgejo/issues/1926 (cherry picked from commit eff0822856fd727915f6e6493a80844cffd7b02a)
This commit is contained in:
parent
cbe94214e9
commit
580f29d9a2
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,7 @@ func handleSchedules(
|
|||
OwnerID: input.Repo.OwnerID,
|
||||
WorkflowID: dwf.EntryName,
|
||||
TriggerUserID: input.Doer.ID,
|
||||
Ref: input.Ref,
|
||||
Ref: input.Repo.DefaultBranch,
|
||||
CommitSHA: commit.ID.String(),
|
||||
Event: input.Event,
|
||||
EventPayload: string(p),
|
||||
|
|
Loading…
Reference in a new issue