ДА ПОШЁЛ ТЫ В ПИЗДУ
This commit is contained in:
18
.github/workflows/publish.yml
vendored
18
.github/workflows/publish.yml
vendored
@@ -69,13 +69,13 @@ jobs:
|
|||||||
passphrase: ${{ secrets.BUILDS_SSH_KEY_PASS }}
|
passphrase: ${{ secrets.BUILDS_SSH_KEY_PASS }}
|
||||||
script: sh ~/ss14/anvil/cortice.sh ${{ github.sha }}
|
script: sh ~/ss14/anvil/cortice.sh ${{ github.sha }}
|
||||||
|
|
||||||
- name: Publish changelog (Discord)
|
# - name: Publish changelog (Discord)
|
||||||
run: Tools/actions_changelogs_since_last_run.py
|
# run: Tools/actions_changelogs_since_last_run.py
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
DISCORD_WEBHOOK_URL: ${{ secrets.CHANGELOG_DISCORD_WEBHOOK }}
|
# DISCORD_WEBHOOK_URL: ${{ secrets.CHANGELOG_DISCORD_WEBHOOK }}
|
||||||
|
|
||||||
- name: Publish changelog (RSS)
|
# - name: Publish changelog (RSS)
|
||||||
run: Tools/actions_changelog_rss.py
|
# run: Tools/actions_changelog_rss.py
|
||||||
env:
|
# env:
|
||||||
CHANGELOG_RSS_KEY: ${{ secrets.CHANGELOG_RSS_KEY }}
|
# CHANGELOG_RSS_KEY: ${{ secrets.CHANGELOG_RSS_KEY }}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ GITHUB_RUN = os.environ["GITHUB_RUN_ID"]
|
|||||||
GITHUB_TOKEN = os.environ["GITHUB_TOKEN"]
|
GITHUB_TOKEN = os.environ["GITHUB_TOKEN"]
|
||||||
|
|
||||||
# https://discord.com/developers/docs/resources/webhook
|
# https://discord.com/developers/docs/resources/webhook
|
||||||
DISCORD_SPLIT_LIMIT = 1500
|
DISCORD_SPLIT_LIMIT = 2000
|
||||||
DISCORD_WEBHOOK_URL = os.environ.get("DISCORD_WEBHOOK_URL")
|
DISCORD_WEBHOOK_URL = os.environ.get("DISCORD_WEBHOOK_URL")
|
||||||
|
|
||||||
CHANGELOG_FILE = "Resources/Changelog/ChangelogWhite.yml"
|
CHANGELOG_FILE = "Resources/Changelog/ChangelogWhite.yml"
|
||||||
@@ -103,7 +103,7 @@ def diff_changelog(old: dict[str, Any], cur: dict[str, Any]) -> Iterable[Changel
|
|||||||
Find all new entries not present in the previous publish.
|
Find all new entries not present in the previous publish.
|
||||||
"""
|
"""
|
||||||
old_entry_ids = {e["id"] for e in old["Entries"]}
|
old_entry_ids = {e["id"] for e in old["Entries"]}
|
||||||
return (e for e in cur["Entries"] if e["id"] not in old_entry_ids)
|
return (e for e in cur["п»їEntries"] if e["id"] not in old_entry_ids)
|
||||||
|
|
||||||
|
|
||||||
def get_discord_body(content: str):
|
def get_discord_body(content: str):
|
||||||
|
|||||||
Reference in New Issue
Block a user