Preserving upstream README, CHANGELOG, etc. files in a fork using Actions. #123667
Unanswered
erictheise
asked this question in
General
Replies: 1 comment
-
An interesting one for sure! To run periodically, you probably want to run your action on a schedule. But, as far as what to actually run on the schedule, here are some git commands that might help you:
I'd recommend writing a shell script that:
This way you can easily play around with this script locally, and when you're satisfied with its behavior you can write an action to run this script on a schedule. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
I'm working on a forked project. While we may occasionally contribute to the upstream project the main purpose of our fork is adding functionality that is not appropriate for the upstream one. I want to use GitHub Actions to periodically pull in upstream changes and run tests in an attempt to stay in sync. Common use case.
As part of this I'd like to keep standard upstream files but also have our own that take precedence. What I mean by that is the upstream
README.md
,CHANGELOG.md
,LICENCE
,TODO.md
, etc. should be available in our repo, say in an/upstream
subdirectory, and that ours should be at the root level of the project.What are the best ways of accomplishing this kind of renaming/moving/preserving upstream files? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions