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

Checkout action is undoing some repo history #573

Closed
pcolmer opened this issue Aug 31, 2021 · 1 comment
Closed

Checkout action is undoing some repo history #573

pcolmer opened this issue Aug 31, 2021 · 1 comment

Comments

@pcolmer
Copy link

pcolmer commented Aug 31, 2021

I'm checking out a repository thus:

      - name: Fetch git repository
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
          ssh-key: ${{ secrets.LINARO_BUILD_KEY }}
          path: website

However, when the repo is fetched, the action does the following:

  /usr/bin/git rev-parse refs/remotes/origin/master
  d84ba4322bb75f2aa391d691680fc829293443ac
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules origin +a3a4c887009c42b68bdb359949807ea66deccf77:refs/remotes/origin/master
  From github.com:Linaro/website
   + d84ba432...a3a4c887 a3a4c887009c42b68bdb359949807ea66deccf77 -> origin/master  (forced update)

thus undoing several commits in the repo. Why is it doing this, please? Is there a setting I'm overlooking? I don't know where the action is getting the commit reference a3a4c887009c42b68bdb359949807ea66deccf77 from but I need it to stop doing it!

@pcolmer
Copy link
Author

pcolmer commented Aug 31, 2021

Please ignore the noise ... the commit reversion was happening because I was re-running a previously failed job, rather than running the workflow "today" afresh.

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

No branches or pull requests

1 participant