Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Missing .github directory #1976

Open
h2oearth opened this issue Nov 14, 2024 · 2 comments
Open

Missing .github directory #1976

h2oearth opened this issue Nov 14, 2024 · 2 comments

Comments

@h2oearth
Copy link

I am using the latest checkout version; somehow, the .github directory is missing when I check the repository. I appreciate your help :-)

      - name: Checkout Repository
        uses: actions/checkout@v4
        with:
          sparse-checkout: .github
          ref: master
          repository: mine/github-workflows
          token: ${{ secrets.REPO_ACCESS }}
@valentindeaconu
Copy link

valentindeaconu commented Nov 14, 2024

We are experiencing the same (or similar) issue with our setup:

      - name: Checkout
        uses: actions/checkout@v4
        with:
          sparse-checkout: |
            ./.github/actions/compute-jobs

      - name: 'Compute jobs'
        id: jobs
        uses: ./.github/actions/compute-jobs

The step Checkout finishes successfully, but Compute jobs fails with:

Error: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/_work/repo/repo/.github/actions/compute-jobs'. Did you forget to run actions/checkout before running your local action?

We started to experience this when we upgraded to actions/runner:v2.320.0.

@grzegorzkrukowski
Copy link

I noticed the same - the .github directory is not checkout for us with a regular checkout and all reusable actions cannot be found

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants