diff --git a/.github/workflows/update_readme.yml b/.github/workflows/update_readme.yml new file mode 100644 index 00000000..7cec23f8 --- /dev/null +++ b/.github/workflows/update_readme.yml @@ -0,0 +1,20 @@ +name: Update Readme + +on: + push: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Update Readme + run: python update_list.py + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Update Readme diff --git a/contributing.md b/contributing.md index 00de785b..521dac5e 100644 --- a/contributing.md +++ b/contributing.md @@ -28,6 +28,3 @@ If a file name contains a special character that Windows is not able to display, The code in the file should be the simplest and most straightforward way to print/display/show `Hello World` exactly once in the language used. User input should not be requested and a newline should only be printed when necessary. -### Updating readme - -After adding the language file, run `update_list.py` with Python 3.6+ to automatically update the language list. If you don't have a local clone, you will need to increment the language count and alphabetically list the language yourself.