You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we don't fetch back far enough to include the sha that NX will try to merge with, the workflow will fail. As a quick fix we simply fetch the last 100 commits. Since we rarely will need that many we should determine how many commits to fetch at runtime:
# This will list the number of commits since the sha (use NX base for sha)# See other scripts for example of getting sha from previous success git tag
git rev-list --count [SHA_FROM_SUCCESS_TAG]..HEAD
$ git rev-list -n 1 last-successful-release
505b1643ce9ce14d5cf27b24d272df7608599b09
$ git rev-list --count 505b1643ce9ce14d5cf27b24d272df7608599b09..HEAD
0
This is probably a good time to test the method of sharing ENV vars by writing them to disc: actions/starter-workflows#68 (comment)
The nx base sha and the 'should_skip' var are both good candidates for this.
The text was updated successfully, but these errors were encountered:
Closing for now, this doesn't seem like a viable solution. From my testing it seems that the only way to find the sha related to the last tag, is to already have that commit cloned.. so I’m going to have to fetch a bunch to find it anyway.
Also seems that the temporary file hack to share variables by writing them to temp files doesn’t work.. the file seems to disappear between steps
If we don't fetch back far enough to include the sha that NX will try to merge with, the workflow will fail. As a quick fix we simply fetch the last 100 commits. Since we rarely will need that many we should determine how many commits to fetch at runtime:
This is probably a good time to test the method of sharing ENV vars by writing them to disc: actions/starter-workflows#68 (comment)
The nx base sha and the 'should_skip' var are both good candidates for this.
The text was updated successfully, but these errors were encountered: