Skip to content
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

build: workaround for an actions/checkout bug #3155

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

rawlins
Copy link
Member

@rawlins rawlins commented Jun 1, 2023

a9a6e9e and ea43df2 removed a step that was probably intended to work around actions/checkout#290 and actions/checkout#882, but broke the CI build if anyone used a lightweight tag (because these fetch lines actually shallow the tag depth to 1). This commit attempts to thread the needle by making this workaround conditional only to releases, where (if the person doing the release has followed the steps correctly), there is guaranteed to be an annotated tag at depth 1 in the tag history. (If I'm parsing the checkout bugs correctly, they only trigger on a tag action anyways.)

a9a6e9e and ea43df2 removed a step that was probably intended to
work around actions/checkout#290 and
actions/checkout#882, but broke the CI build
if anyone used a lightweight tag (because these fetch lines actually
shallow the tag depth to 1). This commit attempts to thread the needle
by making this workaround conditional only to releases, where (if the
person doing the release has followed the steps correctly), there is
guaranteed to be an annotated tag at depth 1 in the tag history. (If I'm
parsing the checkout bugs correctly, they only trigger on a tag action
anyways.)
@rawlins
Copy link
Member Author

rawlins commented Jun 1, 2023

Fake test release: https://github.com/rawlins/crawl/releases/tag/0.99.2, everything seems to work as intended

(@robertxgray not sure if you wanted to look this over)

@robertxgray
Copy link
Contributor

It looks good to me, thanks! 👍

@rawlins rawlins merged commit 8713efd into crawl:master Jun 2, 2023
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants