-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
github: update checkout action to v2 #4294
github: update checkout action to v2 #4294
Conversation
b892698
to
db17750
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the fix 🎉
Hm, old linter error is back:
Need to set |
Checkout v1 has a known flake: actions/checkout#23 (comment). For our linter to pass, we need to checkout our full history (default depth is 1 commit). We could set fetch-depth, but we will eventually move that depth past the linter's start point commit and need to implement another fix. Indead, we add an extra step in our linter to fetch full history so that the linter reference commit is found.
db17750
to
d29271f
Compare
Fetch depth defaults to 1, and does not seem to have an option for "no depth". Instead added an additional step to get all history so that the linter reference point is found, as in example. Another option would be to add fetch-depth=maxint? |
uses: actions/checkout@v2 | ||
|
||
- name: Fetch all history for linter | ||
run: git fetch --prune --unshallow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea, I think that's good for now as we only need the full history for the linter anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Checkout v1 has a known flake:
actions/checkout#23 (comment).
Example failed build:
https://github.com/lightningnetwork/lnd/pull/4213/checks?check_run_id=683943940