Move docs to main repo (#2583) #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Github Folder | |
on: | |
push: | |
branches: ['1.20.1'] | |
paths: ['.github/**'] | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ github.token }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: '1.21' | |
- run: | | |
git config user.name 'github-actions[bot]' | |
git config user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git switch -C gh/workflow-sync | |
git fetch origin | |
git checkout origin/1.20.1 -- .github | |
git commit -am "Sync Workflows" | |
git push --force --set-upstream origin gh/workflow-sync | |
gh pr create -B 1.21 -H gh/workflow-sync --title "Sync Workflows with 1.20.1" --body "Created by GH Workflow" --label "ignore changelog" |