mirror of
https://github.com/jumpserver/helm-charts.git
synced 2026-05-17 04:23:35 +00:00
29 lines
611 B
YAML
29 lines
611 B
YAML
name: sync-readme
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths:
|
|
- 'README.md'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: |
|
|
cp -f README.md ${{ runner.temp }}/README.md
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
ref: gh-pages
|
|
|
|
- run: |
|
|
cp -f ${{ runner.temp }}/README.md .
|
|
git config user.name "$GITHUB_ACTOR"
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
git add README.md
|
|
git commit --signoff -m "Sync README from master"
|
|
git push
|