Skip to content

Commit 09316ac

Browse files
committed
split into extra step after checking binaries
1 parent ddba990 commit 09316ac

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/check-binaries.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,21 @@ jobs:
5656
latest_version=$(strings bin/aws-lambda-rie* | grep '^go1\.' | uniq)
5757
echo "latest_version=$latest_version"
5858
make check-binaries
59+
- if: always()
60+
name: Save output for new version
61+
id: save-new-version
62+
run: |
5963
exit_code=$?
60-
if [ "$exit_code" != "0" ]; then
64+
if [ "${{ steps.check-new-version.outcome }}" != "success" ]; then
6165
fixed="No"
6266
else
6367
fixed="Yes"
6468
fi
6569
echo "fixed=$fixed" >> "$GITHUB_OUTPUT"
6670
echo "Fixed=$fixed"
67-
echo "${{ steps.check-new-version.outputs.latest_version }}"
68-
echo "${{ needs.check-for-vulnerabilities.outputs.report_contents }}"
71+
echo "OUTCOME=${{ steps.check-new-version.outcome }}"
72+
echo "latest-version: ${{ steps.check-new-version.outputs.latest_version }}"
73+
echo "REPORT=[${{ steps.save-output.outputs.report_contents }}"
6974
- name: Second step
7075
id: second-step
7176
run: |
@@ -80,7 +85,7 @@ jobs:
8085
# CVEs found in latest RIE release
8186
# body: |
8287
# ## CVEs found in latest RIE release:
83-
# > **${{ needs.check-for-vulnerabilities.outputs.report_contents }}**
88+
# > **${{ steps.save-output.outputs.report_contents }}**
8489

8590
# #### Is this fixed by just updating to the latest Go version (${{ steps.check-new-version.outputs.latest_version }})?):
8691
# **${{ steps.check-new-version.outputs.fixed }}**

0 commit comments

Comments
 (0)