Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
name: Updating readme

on:
  workflow_dispatch:
  push: { branches: [ "master", "main" ] }

jobs:
  reamde-update:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2

        with:
          persist-credentials: false
          fetch-depth: 0
          python-version: '3.x'
          architecture: 'x64'

      - name: setup git
        run: |
          git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git config --local user.name "github-actions[bot]"
          git pull

      - name: running script
        run: |
          python -m scripts.auto_update_readme
          git commit -m ":memo: Updated Readme" -a || echo "No changes to commit"
          git push || echo "No changes to push"