readme
This commit is contained in:
parent
e653712012
commit
231171c9ba
4 changed files with 7 additions and 7 deletions
0
.github/readme.md → .github/en.md
vendored
0
.github/readme.md → .github/en.md
vendored
0
.github/readme-pl.md → .github/pl.md
vendored
0
.github/readme-pl.md → .github/pl.md
vendored
12
.github/update_thanks.py
vendored
12
.github/update_thanks.py
vendored
|
|
@ -184,9 +184,9 @@ def get_discord_users(user_ids):
|
||||||
return build_table(cells) if cells else ""
|
return build_table(cells) if cells else ""
|
||||||
|
|
||||||
|
|
||||||
def process_file(filename, github_elements, discord_elements, is_pl):
|
def process_file(filename_input, filename_output, github_elements, discord_elements, is_pl):
|
||||||
input_path = f"./.github/{filename}"
|
input_path = f"./.github/{filename_input}"
|
||||||
output_path = f"./{filename}"
|
output_path = f"./{filename_output}"
|
||||||
|
|
||||||
if not os.path.exists(input_path):
|
if not os.path.exists(input_path):
|
||||||
print(f"Error: File {input_path} does not exist")
|
print(f"Error: File {input_path} does not exist")
|
||||||
|
|
@ -248,10 +248,10 @@ def main():
|
||||||
print("Fetching Discord users...")
|
print("Fetching Discord users...")
|
||||||
discord_elements = get_discord_users(DISCORD_USER_IDS)
|
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:
|
for filename_input, filename_output, is_pl in files:
|
||||||
process_file(filename, github_elements, discord_elements, is_pl)
|
process_file(filename_input, filename_output, github_elements, discord_elements, is_pl)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
||||||
2
.github/workflows/update_thanks.yml
vendored
2
.github/workflows/update_thanks.yml
vendored
|
|
@ -36,6 +36,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
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 diff --cached --quiet || git commit -m "chore: update contributors and thanks"
|
||||||
git push
|
git push
|
||||||
Loading…
Add table
Add a link
Reference in a new issue