fix: ensure all post steps are executed (#1286)

This fixes an issue in the chain of post steps introduced
while updating the step-logger for composite actions.

It includes a test case so we make sure this does not happen
again.
This commit is contained in:
Markus Wolf
2022-07-29 21:43:24 +02:00
committed by GitHub
parent 9d76bac4ef
commit 3364f95569
7 changed files with 34 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
name: "action post"
description: "action post"
inputs:
fail:
description: "true if this should fail"
required: false
default: "false"
runs:
using: node16
main: "./main.js"
post: "./post.js"

View File

@@ -0,0 +1,3 @@
if (process.env["INPUT_FAIL"] === "true") {
process.exit(1);
}