diff --git a/.github/workflows/update-pipeline.yml b/.github/workflows/update-pipeline.yml index 6efd6028..9e758c8a 100644 --- a/.github/workflows/update-pipeline.yml +++ b/.github/workflows/update-pipeline.yml @@ -1,5 +1,10 @@ name: Update Pipeline "on": + push: + branches: + - main + paths: + - .github/pipeline-descriptor.yml schedule: - cron: 0 5 * * 1-5 workflow_dispatch: {} diff --git a/octo/update_pipeline.go b/octo/update_pipeline.go index 1b3152ef..09947642 100644 --- a/octo/update_pipeline.go +++ b/octo/update_pipeline.go @@ -27,6 +27,10 @@ func ContributeUpdatePipeline(descriptor Descriptor) (Contribution, error) { w := actions.Workflow{ Name: "Update Pipeline", On: map[event.Type]event.Event{ + event.PushType: event.Push{ + Branches: []string{"main"}, + Paths: []string{filepath.Join(".github", "pipeline-descriptor.yml")}, + }, event.ScheduleType: event.Schedule{{Minute: "0", Hour: "5", DayOfWeek: "1-5"}}, event.WorkflowDispatchType: event.WorkflowDispatch{}, },