1

I want to copy one particular file from another GitHub repo to my own GitHub repo (both are public repos). How do I do this?

marky004
  • 67
  • 8
  • Copy it simply using ctrl + c – Build Though Mar 11 '22 at 10:31
  • I want to automate it since that file is often updated and I use it in my repo. – marky004 Mar 11 '22 at 10:40
  • Does this answer your question? [How do I use Github actions to checkout a different public repo, then add some files from this repo to it, then build etc](https://stackoverflow.com/questions/61889035/how-do-i-use-github-actions-to-checkout-a-different-public-repo-then-add-some-f) – Mushroomator Mar 11 '22 at 10:47
  • @Mushroomator The person is talking about the opposite of what I'm asking – marky004 Mar 11 '22 at 11:00

1 Answers1

1

For example you could use the curl Action to download the file and then push the file to the repository like described in this thread.

Another option is described in this thread.

Mushroomator
  • 6,516
  • 1
  • 10
  • 27