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

CI: reset existing repo to known state #11880

Merged
merged 1 commit into from
Mar 24, 2021

Commits on Mar 24, 2021

  1. CI: reset existing repo to known state

    If at some point a PR accidentally deletes a git submodule without
    deleting it from .gitmodules, subsequent PRs using the same runner will
    fail because the checkout action will try to run `git submodule foreach
    ...` before updating the git repo to match the current PR and fail, we
    can avoid the problem by always resetting to origin/master which
    hopefully is always in a good state.
    
    The `-c "http.https://github.com/.extraheader="` resets a setting set by
    the checkout action which causes authentication issues when fetching.
    
    Ideally the checkout action would be more robust: actions/checkout#354
    smarter committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    2d7b3fc View commit details
    Browse the repository at this point in the history