chore: bump sdk to v1.5.0
This commit is contained in:
parent
1681935a5e
commit
54953ce9d6
5 changed files with 7 additions and 7 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
.git
|
||||||
|
|
@ -7,7 +7,7 @@ WORKDIR /app
|
||||||
COPY go.mod go.sum /app/
|
COPY go.mod go.sum /app/
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|
||||||
COPY *.go /app/
|
COPY . /app/
|
||||||
RUN go build -o app .
|
RUN go build -o app .
|
||||||
|
|
||||||
FROM docker.io/alpine:3.22
|
FROM docker.io/alpine:3.22
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -2,4 +2,4 @@ module code.geekeey.de/actions/checkout
|
||||||
|
|
||||||
go 1.23.2
|
go 1.23.2
|
||||||
|
|
||||||
require code.geekeey.de/actions/sdk v1.2.0
|
require code.geekeey.de/actions/sdk v1.5.0
|
||||||
|
|
|
||||||
4
go.sum
4
go.sum
|
|
@ -1,2 +1,2 @@
|
||||||
code.geekeey.de/actions/sdk v1.2.0 h1:qQvOdTBtZVpR1xATNnApeiW78y34Jh83OjsQg1ajPjA=
|
code.geekeey.de/actions/sdk v1.5.0 h1:7Ly8QsBniiwDVbv2Gm14l28+ccK1Z9fVUqsPHw9lSMg=
|
||||||
code.geekeey.de/actions/sdk v1.2.0/go.mod h1:7iIOi3YUmdDe2BCz9s59wK1t0Ckec34e664q+TOreiE=
|
code.geekeey.de/actions/sdk v1.5.0/go.mod h1:7iIOi3YUmdDe2BCz9s59wK1t0Ckec34e664q+TOreiE=
|
||||||
|
|
|
||||||
5
main.go
5
main.go
|
|
@ -32,8 +32,6 @@ type CheckoutAction struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (action *CheckoutAction) setup() error {
|
func (action *CheckoutAction) setup() error {
|
||||||
var err error
|
|
||||||
|
|
||||||
action.repository = action.GetInput("repository")
|
action.repository = action.GetInput("repository")
|
||||||
if len(action.repository) == 0 {
|
if len(action.repository) == 0 {
|
||||||
return fmt.Errorf("input 'repository': is empty") // something like '<server>/<owner>/<repo>.git'
|
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 {
|
if len(action.reference) == 0 {
|
||||||
return fmt.Errorf("input 'ref': is empty") // something like 'HEAD'
|
return fmt.Errorf("input 'ref': is empty") // something like 'HEAD'
|
||||||
}
|
}
|
||||||
return err
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (action *CheckoutAction) Run(ctx context.Context) error {
|
func (action *CheckoutAction) Run(ctx context.Context) error {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue