Bhacaz / checkout-files

Github Action checkout only certain files
MIT License
35 stars 10 forks source link

Checkout specific folder works only for Default branch #19

Open VeerendraSheelvantTR opened 2 years ago

VeerendraSheelvantTR commented 2 years ago

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 commented 1 year ago

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