diff --git a/.github/readme.md b/.github/en.md similarity index 100% rename from .github/readme.md rename to .github/en.md diff --git a/.github/readme-pl.md b/.github/pl.md similarity index 100% rename from .github/readme-pl.md rename to .github/pl.md diff --git a/.github/update_thanks.py b/.github/update_thanks.py index ea21c31..669cb2d 100644 --- a/.github/update_thanks.py +++ b/.github/update_thanks.py @@ -184,9 +184,9 @@ def get_discord_users(user_ids): return build_table(cells) if cells else "" -def process_file(filename, github_elements, discord_elements, is_pl): - input_path = f"./.github/{filename}" - output_path = f"./{filename}" +def process_file(filename_input, filename_output, github_elements, discord_elements, is_pl): + input_path = f"./.github/{filename_input}" + output_path = f"./{filename_output}" if not os.path.exists(input_path): print(f"Error: File {input_path} does not exist") @@ -248,10 +248,10 @@ def main(): print("Fetching Discord users...") discord_elements = get_discord_users(DISCORD_USER_IDS) - files = [("readme.md", False), ("readme-pl.md", True)] + files = [("en.md", "README.md", False), ("pl.md", "README-PL.md", True)] - for filename, is_pl in files: - process_file(filename, github_elements, discord_elements, is_pl) + for filename_input, filename_output, is_pl in files: + process_file(filename_input, filename_output, github_elements, discord_elements, is_pl) if __name__ == "__main__": diff --git a/.github/workflows/update_thanks.yml b/.github/workflows/update_thanks.yml index 9f2b940..2f66600 100644 --- a/.github/workflows/update_thanks.yml +++ b/.github/workflows/update_thanks.yml @@ -36,6 +36,6 @@ jobs: run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - git add readme.md readme-pl.md .github/avatars/ + git add README.md README-pl.md .github/avatars/ git diff --cached --quiet || git commit -m "chore: update contributors and thanks" git push \ No newline at end of file