Skip to content

Commit

Permalink
Merge pull request #95 from paketo-buildpacks/build-on-descriptor-change
Browse files Browse the repository at this point in the history
Build On Descriptor Change
  • Loading branch information
ekcasey committed Nov 6, 2020
2 parents 6ab9393 + 6f6b821 commit a017252
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/update-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Update Pipeline
"on":
push:
branches:
- main
paths:
- .github/pipeline-descriptor.yml
schedule:
- cron: 0 5 * * 1-5
workflow_dispatch: {}
Expand Down
4 changes: 4 additions & 0 deletions octo/update_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
},
Expand Down

0 comments on commit a017252

Please sign in to comment.