How to download file from other repo to current repo in workflow file (github actions)

33 Views Asked by At

suppose the workflow file in repo1 has

- name: Import
        run: |

           wget https://github.com/kpnssreeram/resuseworkflow-composite/blob/main/hello.env

here it is importing **hello.env **from other repository to current runner the hello.env contains name=hello

What happens is it was downloading as expected, but the contents in it are changing like this instead of name

log file

I need a solution so that same file should be downloaded here without changing anything I am sharing the workflow link. Anyone please resolve this. link to Github action file workflow

0

There are 0 best solutions below