This is an example that simulates the case bwlow:
nx affected:apps fails with error fatal: Not a valid object name master
-
This project was generated using Nx cli:
npx create-nx-workspace@latest myworkspace
-
After that I created the ./.github/workflows/nodejs.yml file for Github Actions with the command
npm run affected:apps
that callsnx affected:apps
. -
Then I created a new branch
new-branch-example
and push to the server.
-
The master action worked normally but the branch action doesn't.
-
It fails with error:
fatal: Not a valid object name master