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 specific folder works only for Default branch #19

Open
VeerendraSheelvantTR opened this issue Oct 3, 2022 · 1 comment
Open

Comments

@VeerendraSheelvantTR
Copy link

checkout specific folder from different branch from a same repo does not work. In below code main is my default branch. But i am running the workflow on poc-5.7.7-vee branch and it fails when i try to checkout automationtests folder.

  - name: Checkout files
    uses: Bhacaz/checkout-files@v2
    with:
      files: automationtests
      branch: poc-5.7.7-vee
@leon1995
Copy link

With my configuration

- name: Check out test directory
  uses: Bhacaz/checkout-files@v2
  with:
    files: tests
    branch: ${{ github.head_ref || github.ref_name }}

I get similar error as in #11

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

3 participants
@leon1995 @VeerendraSheelvantTR and others