Skip to content

Commit

Permalink
doc(README): add description how to use the action (#2) (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasAugustin committed Aug 5, 2020
1 parent 5c8dbec commit 37c5c4f
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,50 @@
# template
# actions-template-sync
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

![Lint](https://github.com/AndreasAugustin/actions-template-sync/workflows/Lint/badge.svg)

It is possible to create repositories within Github with
[GitHub templates](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-template-repository).
This is a nice approach to have some boilerplate within your repository.
Over the time the template repository will get some code changes.
The problem is that the already created repositories won't know about those changes.
This GitHub action will help you to keep track of the template changes.

## Features

* Sync template repository with the current repository

## Usage

### GitHub Actions

Add this configuration to your github action

```yaml
# File: .github/workflows/template-sync.yml

on:
schedule:
- cron: "*/15 * * * *"
jobs:
repo-sync:
runs-on: ubuntu-latest

steps:
# To use this repository's private action, you must check out the repository
- name: Checkout
uses: actions/checkout@v2
- name: actions-template-sync
uses: actions/actions-template-sync
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_repo_path: <the_path_to_the_repo>
```
You will receive a pull request within your repository if there are some changes available.
## DEV
The development environment targets are located in the [Makefile](Makefile)
Expand Down

0 comments on commit 37c5c4f

Please sign in to comment.