I am using bitbucket pipelines and NX for a mono repo.
I am trying to use build and deploy affected using our tag based deployment, but the problem is I need to point point to a branch:
nx affected --target build --base=origin/master~1
and when I use a tag, it is a detached head and I am getting an error in pipelines:
Cloning into '/opt/atlassian/pipelines/agent/build'...
+ git reset --hard 820b28002540f6bb4fde2a8ecd740be8929a5332
HEAD is now at 820b280 update version
..
...
..
> nx affected --target build --base=origin/master~1
fatal: ambiguous argument 'origin/master~1': unknown revision or path not in the working tree.
Does anyone know how to get affected
to work using version tagging for deployments?