Skip to content

Commit

Permalink
[cron] using latest revision instead of cache one
Browse files Browse the repository at this point in the history
  • Loading branch information
iQQBot authored and csweichel committed Oct 24, 2022
1 parent ea07fa6 commit 9311b92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/cron/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func (*cronPlugin) Run(ctx context.Context, config interface{}, srv *plugin.Serv
},
JobPath: spec.Path,
}
request.Metadata.Repository.Revision = ""
entryID, err := c.AddFunc(cronSpec, func() {
_, err := srv.StartGitHubJob(ctx, request)
if err != nil {
Expand Down Expand Up @@ -148,6 +149,7 @@ func (*cronPlugin) Run(ctx context.Context, config interface{}, srv *plugin.Serv
},
JobPath: task.JobPath,
}
request.Metadata.Repository.Revision = ""
_, err = c.AddFunc(task.Spec, func() {
_, err := srv.StartGitHubJob(ctx, request)
if err != nil {
Expand Down

0 comments on commit 9311b92

Please sign in to comment.