mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
fix: do not fail the job when if: false
(#172)
- log job result as info not as debug
- add test
---
v6.4.0 regression introduced in 4880b091a2
It did not fail a test because the [original fix](https://code.forgejo.org/forgejo/act/pulls/67/files) has tests only for the case where a step is skipped, not when a job is skipped.
Closes forgejo/runner#660
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/172
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
parent
21f71e5cdc
commit
7eb547faa5
4 changed files with 36 additions and 20 deletions
11
act/runner/testdata/skipjob/skipjob.yml
vendored
Normal file
11
act/runner/testdata/skipjob/skipjob.yml
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
name: skipjob
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
checkjob:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
if: false
|
||||
|
||||
steps:
|
||||
- run: echo nothing
|
|
@ -1,8 +1,8 @@
|
|||
name: skip
|
||||
name: skipstep
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
check:
|
||||
checkstep:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- if: false
|
Loading…
Add table
Add a link
Reference in a new issue