chore: bump sdk to v1.5.0
This commit is contained in:
parent
1681935a5e
commit
54953ce9d6
1 changed files with 7 additions and 7 deletions
5
main.go
5
main.go
|
|
@ -32,8 +32,6 @@ type CheckoutAction struct {
|
|||
}
|
||||
|
||||
func (action *CheckoutAction) setup() error {
|
||||
var err error
|
||||
|
||||
action.repository = action.GetInput("repository")
|
||||
if len(action.repository) == 0 {
|
||||
return fmt.Errorf("input 'repository': is empty") // something like '<server>/<owner>/<repo>.git'
|
||||
|
|
@ -48,7 +46,8 @@ func (action *CheckoutAction) setup() error {
|
|||
if len(action.reference) == 0 {
|
||||
return fmt.Errorf("input 'ref': is empty") // something like 'HEAD'
|
||||
}
|
||||
return err
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (action *CheckoutAction) Run(ctx context.Context) error {
|
||||
|
|
|
|||
Loading…
Reference in a new issue