Skip to content

Commit

Permalink
Cleanup README
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Chen-Wang committed Jun 16, 2020
1 parent e4eb42e commit 6a1d504
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# github-wiki-action
Updates your GitHub wiki by using diffs.
Updates your GitHub wiki by using rsync.

Repo is WIP!
This action updates your repository's wiki
based on a single directory that matches with
your Wiki's git.

It is recommended that you still have a Home.md
or whatever extension you want instead of MD.

Largely inspired by https://github.com/Decathlon/wiki-page-creator-action
and the [issue that arose from it](https://github.com/Decathlon/wiki-page-creator-action/issues/11),
Expand Down Expand Up @@ -35,7 +40,8 @@ jobs:
- name: Push Wiki Changes
uses: Andrew-Chen-Wang/github-wiki-action@v1
env:
WIKI_DIR: wiki
# Make sure you have that / at the end. We use rsync
WIKI_DIR: wiki/
GH_PAT: ${{ secrets.GH_PAT }}
GH_MAIL: ${{ secrets.YOUR_EMAIL }}
GH_NAME: ${{ github.repository_owner }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: GitHub Wiki Action
author: Andrew Chen Wang <[email protected]>
description: This Github action publishes Wiki pages <i>with a provided markdown section</i> into your GitHub repository's Wiki.
description: This action publishes Wiki pages with a provided directory into your GitHub repository's Wiki.
runs:
using: 'docker'
image: 'Dockerfile'
Expand Down
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ if [ -z "$GH_NAME" ]; then
fi

if [ -z "$REPO" ]; then
echo "REPO ENV is missing. Use the one from the README"
echo "REPO ENV is missing. Using the one from the README"
REPO=$GITHUB_REPOSITORY
fi

if [ -z "$WIKI_DIR" ]; then
echo "WIKI_FOLDER ENV is missing, using default wiki"
WIKI_DIR='wiki'
echo "WIKI_FOLDER ENV is missing, using default wiki/"
WIKI_DIR='wiki/'
fi

if [ -z "$WIKI_PUSH_MESSAGE" ]; then
Expand Down

0 comments on commit 6a1d504

Please sign in to comment.