Skip to content

clean code and update metadata #9

clean code and update metadata

clean code and update metadata #9

name: Convert README from RST to Markdown
on: [pull_request, push]
jobs:
update_readme:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2 # Automatically checks out the branch that triggered the workflow
- name: Configure Git
run: |
git config user.name "Thomas Weiß"
git config user.email "[email protected]"
- name: Install Pandoc
run: sudo apt-get update && sudo apt-get install pandoc
- name: Convert README.rst to README.md
run: pandoc README.rst -f rst -t markdown -o README.md
- name: Commit changes
run: |
git add README.md
git commit -m "Convert README.rst to README.md"
# Use GITHUB_TOKEN to push changes directly to the current branch
- name: Push changes
run: git push origin HEAD
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Uses the default GitHub Actions token