DEV Community

Atsumi
Atsumi

Posted on

1 1

"Unable to find current origin/master revision in submodule path" error at Github Action "actions/checkout@v2"

When I run following actions (that checkout repository with submodules and update),

- name: Checkout
  uses: actions/checkout@v2
  with:
    ref: ${{ github.head_ref }}
    submodules: 'recursive'
    token: ${{ secrets.MY_PAT }}
Enter fullscreen mode Exit fullscreen mode

following error has occurred.

Unable to find current origin/master revision in submodule path
Enter fullscreen mode Exit fullscreen mode

This issue was fixed by fetch-depth: 0 option at checkout action.

Top comments (1)

Collapse
 
matks profile image
Mathieu Ferment

Thank you ! I was struggling with error and your post provided the solution.
github.com/PrestaShop/devdocs-site...

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay