Skip to content

Commit

Permalink
V3 Source Code Ready.
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsridharan committed Nov 25, 2020
1 parent b52c54d commit 4866d52
Show file tree
Hide file tree
Showing 15 changed files with 15,199 additions and 337 deletions.
73 changes: 0 additions & 73 deletions .github/workflows/github-docker-release.yml

This file was deleted.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

---

## 3.0 - 16/11/2020
* Fully Redeveloped From Base but using NodeJS
* Improved performance by 80%
* Option to copy file to remote repository if file alreayd not exists. `!=`
* Option to auto create a new pull request.

---

## 2.0 - 24/10/2020
* Fully Redeveloped From Base
* Migrated Docker File To `varunsridharan/actions-alpine:latest`
Expand Down
19 changes: 0 additions & 19 deletions Dockerfile

This file was deleted.

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

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

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

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

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`
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

<details><summary><strong>Files - Source & Destination File Without Custom Name</strong></summary>

```yaml
Expand Down
16 changes: 6 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,11 @@ inputs:
description: "If set to true then all files are commited 1 by 1 instead of commiting everything @ once"
required: false
default: 'false'
PULL_REQUEST:
description: "Whether or not you want to do a pull request. Only works when branch name is provided. Default false"
required: false
default: 'false'

runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.REPOSITORIES }}
- ${{ inputs.WORKFLOW_FILES }}
- ${{ inputs.GITHUB_TOKEN }}
- ${{ inputs.DRY_RUN }}
- ${{ inputs.WORKFLOW_FILES_DIR }}
- ${{ inputs.COMMIT_EACH_FILE }}
- ${{ inputs.AUTO_CREATE_NEW_BRANCH }}
using: 'node12'
main: 'dist/index.js'
Loading

0 comments on commit 4866d52

Please sign in to comment.