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

workflow action with submodule checkout failing #1564

Open
sfelsheim opened this issue Dec 5, 2023 · 2 comments
Open

workflow action with submodule checkout failing #1564

sfelsheim opened this issue Dec 5, 2023 · 2 comments

Comments

@sfelsheim
Copy link

Hello, I am running GitHub enterprise, but have to use my personal GitHub account to post this issue.

I am trying to create a workflow action to build a dotnet core solution.

name: .NET
on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]
  workflow_dispatch:

jobs:
  build:

    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v3
      with:
        submodules: 'true'
        token: ${{ secrets.GITHUB_TOKEN }}
    - name: Setup .NET
      uses: actions/setup-dotnet@v3
      with:
        dotnet-version: 8.0.x
    - name: Restore dependencies
      run: dotnet restore PlanService/PDS.sln
    - name: Build
      run: dotnet build PlanService/PDS.sln --no-restore

When it executes, it fails saying the submodule repository does not exist (it does)

image

Any help would be appreciated.

Steve

@clmay
Copy link

clmay commented Dec 23, 2023

Having a similar issue with the default GitHub Pages build/deployment... I can clone the repos over https locally, but the action seems to be unable to check them out

Never mind, I just tried to re-run the jobs and it was successful. Seems to have been just an intermittent issue, perhaps unrelated to the above.

@kalanatd
Copy link

#254 Seems to be closed, but largely in play.

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

4 participants
@clmay @sfelsheim @kalanatd and others