Skip to content

Commit

Permalink
fix(github-action): Use the correct cmdfactory prototype for Run (#985
Browse files Browse the repository at this point in the history
)

Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Approved-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
  • Loading branch information
craciunoiuc committed Nov 7, 2023
2 parents 190dc4e + 6701abb commit 77f2680
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/github-action/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package main

import (
"context"
"errors"
"fmt"
"os"
Expand Down Expand Up @@ -214,9 +215,7 @@ func (opts *GithubAction) Pre(cmd *cobra.Command, args []string) (err error) {
return nil
}

func (opts *GithubAction) Run(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()

func (opts *GithubAction) Run(ctx context.Context, args []string) error {
if err := opts.pull(ctx); err != nil {
return fmt.Errorf("could not pull project components: %w", err)
}
Expand Down

0 comments on commit 77f2680

Please sign in to comment.