Comments (4)
@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.
- Option to push changes as a pull request
- 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.
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.
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":
- Action creates new branch, pushes changes
- 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.
@flxw thanks for the clarification.
from action-github-workflow-sync.
Related Issues (16)
- Ability to have custom destination paths HOT 2
- [Feature request] Detect if target repo already has an open PR and append change, instead of opening new PR. HOT 2
- Expose the git_url as GIT_URL so that Github Enterprise instances can utilize this. HOT 3
- Action Failure - Inputs for exiting non-zero
- Clear destination directory before copy HOT 3
- Ability to copy everything from a source folder to destination path/folder HOT 11
- add support for $default-branch placeholder expansion (to copy workflows from <ORG>/.github/workflow-templates) HOT 1
- Contents is not getting updated once the files are synced and pushed to target repository HOT 9
- regex support feature for adding branches
- Node.js 16 support HOT 6
- master branch EOL
- Action fails - git configuration is incomplete HOT 3
- Add a SKIP_CI parameter to modify the commit message and avoid triggering automation HOT 1
- 'License' and 'Code of Conduct' files missing, links are broken HOT 1
- Intermittent 'Repository Dose Not Exists !' error whilst trying to sync HOT 3
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 action-github-workflow-sync.