Skip to content

new-from-rev behaving differently locally & in github action? #2256

Closed Answered by natefinch
natefinch asked this question in Q&A
Discussion options

You must be logged in to vote

ok, yeah, the fix is to set fetch-depth on the checkout to 0, which gets everything rather than just the last commit:

      - uses: actions/checkout@v2
        with: 
          # this gets us all the branch commits, which new-from-rev needs
          fetch-depth: 0

And you need to make sure you use new-from-rev="origin/main" not just "main"..... for reasons that are beyond my comprehension :)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by natefinch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants