Files
deprecated-helm-charts/.github/workflows/sync-readmes.yaml
T
Scott Rigby 8d17daea37 GH Actions to automate gh-pages (#23921)
* Sync chart repo READMEs to gh-pages

Signed-off-by: Scott Rigby <scott@r6by.com>

* Sync chart repos to gh-pages

Signed-off-by: Scott Rigby <scott@r6by.com>

* Combine helm dep and helm package

Signed-off-by: Scott Rigby <scott@r6by.com>
2020-10-19 09:44:14 -07:00

28 lines
907 B
YAML

on:
push:
branches:
- 'master'
paths:
- 'stable/README.md'
- 'incubator/README.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
mkdir -p ${{ runner.temp }}/stable ${{ runner.temp }}/incubator
cp -f stable/README.md ${{ runner.temp }}/stable/README.md
cp -f incubator/README.md ${{ runner.temp }}/incubator/README.md
- uses: actions/checkout@v2
with:
ref: gh-pages
- run: |
cp -f ${{ runner.temp }}/stable/README.md stable
cp -f ${{ runner.temp }}/incubator/README.md incubator
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add stable/README.md incubator/README.md
git commit --signoff -m "Sync READMEs from master [ci skip]"
git push