Skip to content

Commit 36e58b8

Browse files
jkukommendorkapten
authored andcommitted
isigning-event: Collect all output into a single file
* GITHUB_STEP_SUMMARY should only contain the step output * but collected 'output' is used to create the signing event comment
1 parent b0f7ef3 commit 36e58b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

actions/signing-event/action.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ runs:
6868
echo "targets_updated=false" >> $GITHUB_OUTPUT
6969
fi
7070
cat update-output
71+
cat update-output >> output
7172
cat update-output >> "$GITHUB_STEP_SUMMARY"
7273
shell: bash
7374

@@ -82,6 +83,7 @@ runs:
8283
echo "targets_signed=false" >> $GITHUB_OUTPUT
8384
fi
8485
cat sign-output
86+
cat sign-output >> output
8587
cat sign-output >> "$GITHUB_STEP_SUMMARY"
8688
shell: bash
8789

@@ -94,6 +96,7 @@ runs:
9496
echo "status=failure" >> $GITHUB_OUTPUT
9597
fi
9698
cat status-output
99+
cat status-output >> output
97100
cat status-output >> "$GITHUB_STEP_SUMMARY"
98101
shell: bash
99102

@@ -130,7 +133,7 @@ runs:
130133
console.log(`Found existing pull request #${pr}`)
131134
}
132135
133-
message = fs.readFileSync('./status-output').toString()
136+
message = fs.readFileSync('./output').toString()
134137
summary = "Signing event in progress"
135138
should_be_draft = true
136139
if (process.env.STATUS == 'success') {

0 commit comments

Comments
 (0)