Giter VIP home page Giter VIP logo

Comments (4)

varunsridharan avatar varunsridharan commented on June 19, 2024 1

@flxw based on your request i fully redeveloped this action from scrach .

the new version is faster compared to the current stable version and also includes 2 new features.

  1. Option to push changes as a pull request
  2. Copy file if not already exists in remote repository.

The new version is still in beta and you can give it a try by chaning the action's source branch to nodejs-fullrework

make sure to set PULL_REQUEST key to true if you want to push chages as pull request

      - name: Running Workflow Sync
        uses: varunsridharan/action-github-workflow-sync@main
        with:
+         PULL_REQUEST: true

And for the new file copy feature all you need to do is add ! before the = like below

WORKFLOW_FILES: |
  file1yml=file1.yml
  file2yml!=file2.yml 

in the above config file1.yml will get overriten every time the action is triggered for that repo. but the file file2 will only be copied once if the file not eixsts.

please do give it a try and provide your feedback.

from action-github-workflow-sync.

varunsridharan avatar varunsridharan commented on June 19, 2024

@flxw

so what I understood is that you want this action to auto create a new pull request if any changes are found instead of pushing it directly right ?

from action-github-workflow-sync.

flxw avatar flxw commented on June 19, 2024

Exactly, I think it would be useful if the changes could be pushed to a separate branch and then have a PR created towards the default branch. This way it is possible to keep customization while still having a "base in sync":

  1. Action creates new branch, pushes changes
  2. Action creates PR from new branch to default branch

It's possible with other means as I described but I think it could be a useful addition

from action-github-workflow-sync.

varunsridharan avatar varunsridharan commented on June 19, 2024

@flxw thanks for the clarification.

from action-github-workflow-sync.

Related Issues (16)

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.