Fork me on GitHub
#polylith
<
2022-01-10
>
dangercoder15:01:39

I have an issue, my ci-pipeline utilises polylith-cli and whenever I look for changes, the command return an empty vector. poly ws get:changes:changed-or-affected-projects since:release skip:dev When I run the same command locally it works. Anyone faced similar issues and solved it?

tengstrand16:01:09

Do you get the same result both locally and on the server if you run poly diff since:release ?

tengstrand16:01:45

This is equivalent to poly ws get:changes:changed-files since:release and is what changed-or-affected-projects takes as input.

seancorfield20:01:09

@UBN9SNVB4 Is your CI pipeline pulling the full git commit set or just the latest commit? (GH Actions by default only pull a single commit level, so there's no git history)

seancorfield20:01:34

Also, you'll probably want color-mode:none in that command (I think someone already mentioned that in an earlier thread?).

dangercoder07:01:42

Thanks for the replies, @U04V70XH6 it was the default git pull behaviour in github actions that was the issue. color-mode:none is being used, accidently copied the command I tried in the terminal 🙂.

1
oly08:01:31

This caught me out for ages, fetch-depth is the key, currently writing docs on setting up polylith in github actions for internal devs as its a bit more complicated 😛

- uses: actions/checkout@v2
        with:
          fetch-depth: 0

👍 1