-
Notifications
You must be signed in to change notification settings - Fork 2
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
Automated release pipeline #20
Conversation
c437a6b
to
cbd190a
Compare
cbd190a
to
8b7b011
Compare
2323bee
to
1bf3b37
Compare
17c0770
to
bbb3168
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.
Looks great! Just one minor comment, not blocking at all though.
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 100 |
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.
Curious if we can/should reduce this. Would we be able to get away with 1 here?
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.
I did a little research and I think the best we can get away with is by using filter: tree:0
:
actions/checkout#1152 (comment)
The reason is that we need the history to be able to figure out the latest git tag. A shallow clone unfortunately does not give us that.
Maybe we can reduce the depth to 50, or 25 assuming that we will always cut new releases when we are about 50 or 25 merged PRs. WDYT?
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.
Gotcha! I think it's fine to leave at 100 then, as that should usually contain the last tag. Probably a bit better to overestimate than under :)
Working Evidence: https://github.com/TBD54566975/web5-swift/releases/tag/0.0.3-test (let's remove it before merging it!)