Merge pull request #38 from ashkanpakzad/docs-paper #9
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: copyreadme | |
on: | |
push: | |
branches: [ master ] | |
paths: 'docs/index.rst' | |
jobs: | |
docit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Copy the index | |
run: cp docs/index.rst readme.rst | |
- name: Commit files | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add readme.rst | |
git commit -m "updated readme" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |