Feature request: dont fail ci, wenn nx cloud free tier limits are exceeded #31894
RobbyRabbitman
started this conversation in
Feature Requests
Replies: 1 comment
-
Ok, so there are couple of ways to disable nx cloud: In my case, I wrapped the #!/bin/sh
set +e
installLog=$(pnpm i 2>&1)
exit_code=$?
set -e
echo "$installLog"
NX_CLOUD_DISABLED_MSG="This Nx Cloud organization has been disabled due to exceeding the FREE plan."
if [ $exit_code -ne 0 ] && echo "$installLog" | grep -qi "$NX_CLOUD_DISABLED_MSG"; then
echo "Nx Cloud organization has been disabled, disabling Nx Cloud for this run."
echo "NX_NO_CLOUD=true" >>"$GITHUB_ENV"
# trigger postinstall scripts again, because they might have been errored due to the Nx Cloud error
export NX_NO_CLOUD=true
pnpm i
else
exit $exit_code
fi with usage: # - run: pnpm i
- run: .github/scripts/install-deps.sh |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Nx cloud with free tier is really nice, however when the limits are exceeded ci fails. Can we make nx cloud optional? Use it when there are tokens left, and disable it when limits are exceeded, but dont fail ci. Maybe add a env var or a entry for that in the nx.json.
Beta Was this translation helpful? Give feedback.
All reactions