Comments (6)
Making some good progress. Obviously git remote
will only work post-clone, so I am looking at
git ls-remote
to detect branch name, because we need to do it pre-clone.
from copycat-action.
@andstor I think I have something testable working for this... there is likely a few kinks to work out.
How do you test Github actions locally for this repo? Or do you just docker build
and run
and pass the env variables manually? Or do you use something like act
?
Any info to help in the local testing process would be great :)
from copycat-action.
Automatic detection of the default branch is absolutely something we should try to implement 👍
@spencer741 I took a quick look at the git ls-remote
command you mentioned. I did a quick google search and came up with something like this:
git ls-remote --symref https://github.com/andstor/copycat-action HEAD | awk '/^ref:/ {sub(/refs\/heads\//, "", $2); print $2}'
It seems to do the trick, but has to be more thoroughly tested, both in terms of reliability and validity.
Regarding testing, I have just sat up two private testing repositories and used GitHub Actions directly. This is absolutely not ideal. For this purpose, act seems to be a much better approach. However, I haven't had time to try it out. Please do share your experience if you decide to try it out! 🤩
Manually testing the action's logic (entrypoint.sh) is however, a somewhat painful task when testing for backwards compatibility. I would therefore really like to get some automatic regression testing implemented. If this is something you would be interested in, I would really appreciate it 😍
from copycat-action.
Any progress on this? Surely main
should now be the default in the meantime…
from copycat-action.
Thanks for bringing this up @danielbayley. I think the owner and I have become extremely busy with life. I'll make a note to myself to dive into this later this week.
from copycat-action.
I think the owner and I have become extremely busy with life.
Tell me about it! 😅
from copycat-action.
Related Issues (20)
- Copy files to a different branch of the same repository HOT 2
- Feature proposal: --no-clobber option for the copy command HOT 1
- Add option to copy just folder contents instead of folder AND contents HOT 2
- How to use env variables in COMMIT_MESSAGE? HOT 1
- [FEATURE] dst_repo_owner and dst_repo_name should be merged in dst_repo
- [FEATURE REQUEST] Copy from GitHub Action Workspace to the repo's branch HOT 2
- fatal: could not read Password for 'https://***@github.com': No such device or address HOT 2
- Cannot find newly created folder called build HOT 3
- Action terminates successfully despite failure HOT 2
- Deleting contents of parent folder HOT 4
- Can´t exclude multiple folders. HOT 1
- Can we use github.token or secrets.github_token instead of personal access token HOT 1
- Removes files in the Destination repository. HOT 1
- Exclude pattern not working
- Copy each `commit_message` from source folder's git history HOT 1
- Personal Access Token in a Organization Secret "PERSONAL_TOKEN"
- i want to add a param src_repo_name
- REPOSITORY IS DEAD?
- How to include LFS files?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copycat-action.