Git Product home page Git Product logo

Comments (3)

JoseRodrigues443 avatar JoseRodrigues443 commented on July 17, 2024 1

@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.

dmnemec avatar dmnemec commented on July 17, 2024

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.

101story avatar 101story commented on July 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.