Skip to content

Commit 669c0c5

Browse files
committed
Run next steps only when binary check happens
1 parent be0625b commit 669c0c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/check-binaries.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
echo "report_contents<<EOF" >> "$GITHUB_OUTPUT"
4141
cat "$final_report" >> "$GITHUB_OUTPUT"
4242
echo "EOF" >> "$GITHUB_OUTPUT"
43-
- if: always() && steps.check-binaries.outcome == 'failure'
43+
- if: always() && steps.save-output.outputs.report_contents
4444
name: Build new binaries and check vulnerabilities again
4545
id: check-new-version
4646
run: |
@@ -50,7 +50,7 @@ jobs:
5050
latest_version=$(strings bin/aws-lambda-rie* | grep '^go1\.' | sort | uniq)
5151
echo "latest_version=$latest_version" >> "$GITHUB_OUTPUT"
5252
make check-binaries
53-
- if: always() && steps.check-binaries.outcome == 'failure'
53+
- if: always() && steps.save-output.outputs.report_contents
5454
name: Save outputs for the check with the latest build
5555
id: save-new-version
5656
run: |
@@ -60,7 +60,7 @@ jobs:
6060
fixed="Yes"
6161
fi
6262
echo "fixed=$fixed" >> "$GITHUB_OUTPUT"
63-
- if: always() && steps.check-binaries.outcome == 'failure'
63+
- if: always() && steps.save-output.outputs.report_contents
6464
name: Create GitHub Issue indicating vulnerabilities
6565
id: create-issue
6666
uses: dacbd/create-issue-action@main

0 commit comments

Comments
 (0)