mirror of
https://github.com/thegeeklab/wp-git-action.git
synced 2024-11-09 17:10:41 +00:00
chore(deps): update dependency golangci/golangci-lint to v1.52.0 (#48)
This commit is contained in:
parent
7d9524d080
commit
0fd32ffb01
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
||||
# renovate: datasource=github-releases depName=mvdan/gofumpt
|
||||
GOFUMPT_PACKAGE_VERSION := v0.4.0
|
||||
# renovate: datasource=github-releases depName=golangci/golangci-lint
|
||||
GOLANGCI_LINT_PACKAGE_VERSION := v1.51.2
|
||||
GOLANGCI_LINT_PACKAGE_VERSION := v1.52.0
|
||||
|
||||
EXECUTABLE := drone-git-action
|
||||
|
||||
|
@ -54,15 +54,11 @@ func WriteSSHKey(privateKey string) error {
|
||||
|
||||
privpath := filepath.Join(sshpath, "id_rsa")
|
||||
|
||||
if err := os.WriteFile(
|
||||
return os.WriteFile(
|
||||
privpath,
|
||||
[]byte(privateKey),
|
||||
strictFilePerm,
|
||||
); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
)
|
||||
}
|
||||
|
||||
// WriteNetrc writes the netrc file.
|
||||
|
@ -188,11 +188,7 @@ func (p *Plugin) handleInit() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
if err := execute(git.Init(p.settings.Repo)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return execute(git.Init(p.settings.Repo))
|
||||
}
|
||||
|
||||
// HandleClone clones remote.
|
||||
@ -211,11 +207,7 @@ func (p *Plugin) handleClone() error {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := execute(git.CheckoutHead(p.settings.Repo)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return execute(git.CheckoutHead(p.settings.Repo))
|
||||
}
|
||||
|
||||
// HandleCommit commits changes locally.
|
||||
|
Loading…
Reference in New Issue
Block a user