Skip to content

Commit

Permalink
[workflow] Sync readme with gh-pages branch
Browse files Browse the repository at this point in the history
  • Loading branch information
didierofrivia committed Jun 18, 2024
1 parent bfe48b7 commit 870ed6f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/sync-readme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
push:
branches:
- 'main'
paths:
- 'README.md'

jobs:
build:
permissions:
contents: write

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
cp -f README.md ${{ runner.temp }}/README.md
- uses: actions/checkout@v4
with:
ref: gh-pages
- run: |
cp -f ${{ runner.temp }}/README.md .
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add README.md
git commit --signoff -m "Sync README from main"
git push

0 comments on commit 870ed6f

Please sign in to comment.