DEV Community

Atsumi
Atsumi

Posted on

"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...