Fix bash command substitution bug in OpenAPI sync workflow (#58271)
This commit is contained in:
2
.github/workflows/sync-openapi.yml
vendored
2
.github/workflows/sync-openapi.yml
vendored
@@ -85,7 +85,7 @@ jobs:
|
|||||||
# If nothing to commit, exit now. It's fine. No orphans.
|
# If nothing to commit, exit now. It's fine. No orphans.
|
||||||
changes=$(git diff --name-only | wc -l)
|
changes=$(git diff --name-only | wc -l)
|
||||||
if [[ $changes -eq 0 ]]; then
|
if [[ $changes -eq 0 ]]; then
|
||||||
echo "There are no changes to commit after running `npm run sync-rest` Exiting..."
|
echo "There are no changes to commit after running 'npm run sync-rest'. Exiting..."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user