mirror of
https://github.com/thegeeklab/wp-git-action.git
synced 2024-11-13 22:50: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
|
# renovate: datasource=github-releases depName=mvdan/gofumpt
|
||||||
GOFUMPT_PACKAGE_VERSION := v0.4.0
|
GOFUMPT_PACKAGE_VERSION := v0.4.0
|
||||||
# renovate: datasource=github-releases depName=golangci/golangci-lint
|
# 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
|
EXECUTABLE := drone-git-action
|
||||||
|
|
||||||
|
@ -54,15 +54,11 @@ func WriteSSHKey(privateKey string) error {
|
|||||||
|
|
||||||
privpath := filepath.Join(sshpath, "id_rsa")
|
privpath := filepath.Join(sshpath, "id_rsa")
|
||||||
|
|
||||||
if err := os.WriteFile(
|
return os.WriteFile(
|
||||||
privpath,
|
privpath,
|
||||||
[]byte(privateKey),
|
[]byte(privateKey),
|
||||||
strictFilePerm,
|
strictFilePerm,
|
||||||
); err != nil {
|
)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// WriteNetrc writes the netrc file.
|
// WriteNetrc writes the netrc file.
|
||||||
|
@ -188,11 +188,7 @@ func (p *Plugin) handleInit() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := execute(git.Init(p.settings.Repo)); err != nil {
|
return execute(git.Init(p.settings.Repo))
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// HandleClone clones remote.
|
// HandleClone clones remote.
|
||||||
@ -211,11 +207,7 @@ func (p *Plugin) handleClone() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := execute(git.CheckoutHead(p.settings.Repo)); err != nil {
|
return execute(git.CheckoutHead(p.settings.Repo))
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// HandleCommit commits changes locally.
|
// HandleCommit commits changes locally.
|
||||||
|
Loading…
Reference in New Issue
Block a user