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

fix(nightly): fetch two commits to detect commits-since-last-build #641

Merged
merged 2 commits into from
Apr 9, 2021

Conversation

sjbarag
Copy link
Owner

@sjbarag sjbarag commented Apr 9, 2021

The default behavior for GitHub's actions/checkout@v2 only fetches the latest commit [1], so our previous attempts to detect commits "since last night's nightly build" always failed. Fetch two commits to make it possible to detect commits in main within the past 25 hours.

[1] https://github.com/actions/checkout/tree/25a956c84d5dd820d28caab9f86b8d183aeeff3d#checkout-v2

The default behavior for GitHub's `actions/checkout@v2` only fetches the
latest commit [1], so our previous attempts to detect commits "since
last night's nightly build" always failed.  Fetch two commits to make it
possible to detect commits in `main` within the past 25 hours.

[1] https://github.com/actions/checkout/tree/25a956c84d5dd820d28caab9f86b8d183aeeff3d#checkout-v2
@sjbarag sjbarag force-pushed the fetch-multiple-commits-for-nightly-builds branch from 593fef5 to b623d8b Compare April 9, 2021 16:47
@sjbarag sjbarag force-pushed the fetch-multiple-commits-for-nightly-builds branch from c542a69 to 5b6b9c9 Compare April 9, 2021 16:49
@sjbarag sjbarag added bug Any difference between this BrightScript implementation and RBI, or otherwise unexpected behavior build Affects this project's build system labels Apr 9, 2021
@sjbarag sjbarag merged commit ba21649 into main Apr 9, 2021
@sjbarag sjbarag deleted the fetch-multiple-commits-for-nightly-builds branch April 9, 2021 16:52
@sjbarag
Copy link
Owner Author

sjbarag commented Apr 9, 2021

Merged without review because this only impacts the nightly build (which currently succeeds but doesn't do anything), and I want to make sure things work when this runs at 10:05am PT 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Any difference between this BrightScript implementation and RBI, or otherwise unexpected behavior build Affects this project's build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant