Skip to content

Commit 82baa51

Browse files
ci(parse-server-mongo): detect step also requires helper script on base ref
parse-server-mongo/ already exists on main (PRs #94/#95), so the prior detect step returned true on every PR's release-coverage job and the measure step then tried to invoke a helper script that didn't exist on the base ref. Extending detect to require the helper script too lets the first-PR escape hatch fire when the workflow itself is the change being introduced. Signed-off-by: Akash Kumar <meakash7902@gmail.com>
1 parent 67e104c commit 82baa51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/parse-server-mongo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
- id: detect
121121
name: Detect baseline presence
122122
run: |
123-
if [ -d parse-server-mongo ] && [ -x parse-server-mongo/flow.sh ]; then
123+
if [ -d parse-server-mongo ] && [ -x parse-server-mongo/flow.sh ] && [ -f .github/workflows/scripts/run-and-measure-parse-server.sh ]; then
124124
echo "sample-existed=true" >>"$GITHUB_OUTPUT"
125125
echo "Sample exists on base ref — running full measurement."
126126
else

0 commit comments

Comments
 (0)