Create lint-md.yaml #74
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: Merge to Docs Branch | |
permissions: write-all | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
merge-to-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Merge to Docs Branch | |
run: | | |
git config user.name "andsonder" | |
git config user.email "[email protected]" | |
git config pull.rebase false | |
git remote set-url origin "https://github-actions:${{ secrets.SONDER_TOKEN }}@github.com/PaddleJitLab/CUDATutorial.git" | |
git remote -v | |
git fetch --all | |
git pull origin develop --allow-unrelated-histories --no-edit | |
git checkout -b docs origin/docs | |
git pull origin docs --allow-unrelated-histories --no-edit | |
git pull origin develop --allow-unrelated-histories --no-edit | |
git push origin docs |