mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-21 18:11:06 +00:00
fix: set composite outputs on failure (#945)
fix: conclusion and outcome after error with failure condition fix: continue-on-error doesn't work correctly for composite actions
This commit is contained in:
parent
61c66784dd
commit
2ee208a335
5 changed files with 32 additions and 5 deletions
14
act/runner/testdata/composite-fail-with-output/push.yml
vendored
Normal file
14
act/runner/testdata/composite-fail-with-output/push.yml
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
name: composite-fail-with-output
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test-for-output:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./actions/composite-fail-with-output
|
||||
id: composite-fail-with-output
|
||||
continue-on-error: true
|
||||
- run: |
|
||||
echo ${{steps.composite-fail-with-output.outputs.customoutput}}
|
||||
exit ${{steps.composite-fail-with-output.outputs.customoutput == 'my-customoutput-green' && '0' || '1'}}
|
Loading…
Add table
Add a link
Reference in a new issue