Comments (3)
@LakshmiRavali you can check my example here
https://github.com/JoseRodrigues443/Awesome-CV/blob/master/.github/workflows/main.yml
Basically I use a matrix with key values (location and destination) and with that I can do what you need
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
files: [resume, cv, coverletter]
include:
- repo: JoseRodrigues443/JoseRodrigues443
dir: ''
- repo: JoseRodrigues443/joserodrigues443.github.io
dir: static/files
from copy_file_to_another_repo_action.
In it's current state you could add the action multiple times if you have a lot of files in different places. If all the files are in the same dir, could copy the entire directory. You could also setup an action before it to collect all the files to copy so it only does one copy, but you'd have to sort them out in the destination repo somehow.
The main problem is how to collect all the different file paths. Deciding on a way that doesn't break backwards compatibility needs to be done.
from copy_file_to_another_repo_action.
@LakshmiRavali you can check my example here
https://github.com/JoseRodrigues443/Awesome-CV/blob/master/.github/workflows/main.yml
Basically I use a matrix with key values (location and destination) and with that I can do what you need
jobs: build: runs-on: ubuntu-latest strategy: matrix: files: [resume, cv, coverletter] include: - repo: JoseRodrigues443/JoseRodrigues443 dir: '' - repo: JoseRodrigues443/joserodrigues443.github.io dir: static/files
I'm trying to use this action in my project. but i also need to push all files in one directory.
I think this is also a good idea. Thanks for sharing.
And I just want to add more conditions a little. like i want to create one PR in another repo for all file or just changed files only.
Is there a possible way?
from copy_file_to_another_repo_action.
Related Issues (20)
- Create branch if not existent, else update HOT 1
- Action fails after recent change to entrypoint.sh HOT 15
- URL using bad/illegal format or missing URL HOT 9
- No space before ']'
- Doesn't post to root folder. HOT 1
- Setting up to use default Github env. variables HOT 3
- Coping old file HOT 1
- Authorization fails when 2FA is enabled
- Authentication failed with 2FA enabled organisation
- Push LFS file to destination HOT 1
- Fails to copy to a private repo. HOT 1
- When using multiple files in a matrix, the first copy will work... The next one will not because the source changed HOT 1
- fatal: unable to access '...': URL using bad/illegal format or missing URL
- Update Version Number of Destination Repo
- Existing file overwrite
- workflow not using ssh
- The `save-state` command is deprecated and will be disabled soon.
- commit_message to be actual commit message HOT 1
- Source folder in root to destination folder in root issue
- Not updated for a long time so i created a fork
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 copy_file_to_another_repo_action.