From ab9cd6e9a6690d66b2a20c2bc81024b9ab8a2838 Mon Sep 17 00:00:00 2001 From: gnuhead-chieb <41156994+gnuhead-chieb@users.noreply.github.com> Date: Sun, 27 Nov 2022 02:51:57 +0900 Subject: [PATCH] Auto readme updater (#1418) * Auto readme updater * Update .github/workflows/update_readme.yml Co-authored-by: Gabe <66077254+MrBrain295@users.noreply.github.com> --- .github/workflows/update_readme.yml | 20 ++++++++++++++++++++ contributing.md | 3 --- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/update_readme.yml 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.