forgejo-runner-act/pkg
Zettat123 6b1010ad07 Fix potential panic caused by nil Step (#48)
```yml
jobs:
  job1:
    steps:
      - run: echo HelloWorld
      - # empty step
```

If a job contains an empty step, `Job.Steps` will have a nil element and will cause panic when calling `Step.String()`.

See [the code of gitea](948a9ee5e8/models/actions/task.go (L300-L301))

Reviewed-on: https://gitea.com/gitea/act/pulls/48
Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-committed-by: Zettat123 <zettat123@gmail.com>
2023-04-21 14:45:38 +08:00
..
artifacts fix: tolerate workflow that needs a missing job (#1595) (#1619) 2023-02-16 16:41:59 +00:00
common Merge tag 'nektos/v0.2.43' 2023-03-16 11:45:29 +08:00
container Add go build tag to docker_network.go (#44) 2023-04-19 16:19:38 +08:00
exprparser Support configuration variables (#43) 2023-04-19 15:22:56 +08:00
jobparser Fix potential panic caused by nil Step (#48) 2023-04-21 14:45:38 +08:00
lookpath feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
model Avoid using log.Fatal in pkg/* (#39) 2023-04-07 16:31:03 +08:00
runner Support intepolation for env of services (#47) 2023-04-20 16:24:31 +08:00
workflowpattern feat: workflowpattern package (#1618) 2023-02-23 18:21:08 +00:00