-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (34 loc) · 1.07 KB
/
readme.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Sync README file
on:
push:
branches:
- main
paths:
- 'README.md'
- 'minion/README.md'
- 'horizon/README.md'
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
cp -f README.md ${{ runner.temp }}/README.md
mkdir ${{ runner.temp }}/minion
cp -f minion/README.md ${{ runner.temp }}/minion/README.md
mkdir ${{ runner.temp }}/horizon
cp -f horizon/README.md ${{ runner.temp }}/horizon/README.md
- uses: actions/checkout@v2
with:
ref: gh-pages
- run: |
cp -f ${{ runner.temp }}/README.md .
cp -f ${{ runner.temp }}/minion/README.md ./minion/README.md
cp -f ${{ runner.temp }}/horizon/README.md ./horizon/README.md
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add -A
git commit -m "Sync README from main"
git push