Skip to content

Commit 4866d52

Browse files
V3 Source Code Ready.
1 parent b52c54d commit 4866d52

File tree

15 files changed

+15199
-337
lines changed

15 files changed

+15199
-337
lines changed

.github/workflows/github-docker-release.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
55
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
66

77
---
8+
9+
## 3.0 - 16/11/2020
10+
* Fully Redeveloped From Base but using NodeJS
11+
* Improved performance by 80%
12+
* Option to copy file to remote repository if file alreayd not exists. `!=`
13+
* Option to auto create a new pull request.
14+
15+
---
16+
817
## 2.0 - 24/10/2020
918
* Fully Redeveloped From Base
1019
* Migrated Docker File To `varunsridharan/actions-alpine:latest`

Dockerfile

Lines changed: 0 additions & 19 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ _This Github Action can come in handy when you have lot of projects like i do._
1010
_where in some case certain projects users action workflow which are common across projects._
1111
_Example : [Project 1][project1] & [Project 2][project2] it can be pain to keep all the workflow updated with Github Action's Module's version._
1212

13-
This also isn't limited to Github Action yaml files - another use case could be keeping the `.editorconfig`, `LICENSE`, `tsconfig.json`, `tslint.json`, `.gitignore`, `azure-pieplines.yml`, etc. in sync across all your repositories.
13+
This also isn't limited to Github Action yaml files - another use case could be keeping the `.editorconfig`, `LICENSE`, `tsconfig.json`, `tslint.json`, `.gitignore`, etc. in sync across all your repositories.
1414

1515
>_Here where this action comes in and reduces your stress 😉 it can update all your repository actions file based on the config provided_
1616
@@ -25,6 +25,7 @@ This also isn't limited to Github Action yaml files - another use case could be
2525
| `WORKFLOW_FILES_DIR` | ***workflows*** | Local Path Where Common Workflow Files Are Located ***Eg : `workflows`*** |
2626
| `AUTO_CREATE_NEW_BRANCH` | ***false*** | Auto create new brach in a repository if the branch dose not exists |
2727
| `COMMIT_EACH_FILE` | ***false*** | if you need to keep track of each file's commit history separate then set it to true |
28+
| `PULL_REQUEST` | **false** | Set to `true` if you want the changes to be pushed via pull request. |
2829

2930
### Personal Access Token Scope
3031
#### [Github Personal Token](https://github.com/settings/tokens/new?description=gh-workflow-sync) <small> Is required with the below scope </small>
@@ -63,6 +64,9 @@ REPOSITORIES: |
6364
6465
### `WORKFLOW_FILES` Configuration Examples
6566

67+
1. If you use `=` as a file seperator `file1.md=myfile.md` then `file1` from the current repository will be copied to remote repository with the name of `myfile.md`
68+
1. If you use `!=` as a file seperator `file1.md!=myfile.md` then `file1` from the current repository will be copied to remote repository with the name of `myfile.md` only if `myfile.md` already not exists in the remote repository
69+
6670
<details><summary><strong>Files - Source & Destination File Without Custom Name</strong></summary>
6771

6872
```yaml

action.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,11 @@ inputs:
3232
description: "If set to true then all files are commited 1 by 1 instead of commiting everything @ once"
3333
required: false
3434
default: 'false'
35+
PULL_REQUEST:
36+
description: "Whether or not you want to do a pull request. Only works when branch name is provided. Default false"
37+
required: false
38+
default: 'false'
3539

3640
runs:
37-
using: 'docker'
38-
image: 'Dockerfile'
39-
args:
40-
- ${{ inputs.REPOSITORIES }}
41-
- ${{ inputs.WORKFLOW_FILES }}
42-
- ${{ inputs.GITHUB_TOKEN }}
43-
- ${{ inputs.DRY_RUN }}
44-
- ${{ inputs.WORKFLOW_FILES_DIR }}
45-
- ${{ inputs.COMMIT_EACH_FILE }}
46-
- ${{ inputs.AUTO_CREATE_NEW_BRANCH }}
41+
using: 'node12'
42+
main: 'dist/index.js'

0 commit comments

Comments
 (0)