Skip to content

Update README.md

Update README.md #47

# This is a basic workflow to help you get started with Actions
name: Update Github Page
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
paths:
- "README.md"
- "docs/_config.yml"
- ".github/workflows/update-github-page.yml"
- "banner.svg"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0
- name: Create local changes
run: |
rm docs/index.md
cp README.md docs/index.md
cp banner.svg docs/banner.svg
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "Sebastian Weiß"
git add -A
git commit -am "Update github page" || echo "Nothing to update"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}