From e34dfcd94782f7ba42deae10c5c62e3d042d7b10 Mon Sep 17 00:00:00 2001 From: FoxxoTrystan Date: Mon, 15 Jul 2024 00:22:28 +0200 Subject: [PATCH 1/3] Changelogs --- .github/workflows/publish-changelog.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/publish-changelog.yml diff --git a/.github/workflows/publish-changelog.yml b/.github/workflows/publish-changelog.yml new file mode 100644 index 00000000000..18abe64aa7a --- /dev/null +++ b/.github/workflows/publish-changelog.yml @@ -0,0 +1,24 @@ +name: Publish Changelog + +on: + workflow_dispatch: + schedule: + - cron: '0 10 * * *' + +jobs: + publish_changelog: + runs-on: ubuntu-latest + steps: + + - name: checkout + uses: actions/checkout@v3 + with: + token: ${{secrets.GITHUB_TOKEN}} + ref: master + + - name: Publish changelog + run: Tools/actions_changelogs_since_last_run.py + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DISCORD_WEBHOOK_URL: ${{ secrets.CHANGELOG_DISCORD_WEBHOOK }} + continue-on-error: true From 949288b518e7ecc5ebb41c56f64cb57fe9d8ca4d Mon Sep 17 00:00:00 2001 From: FoxxoTrystan Date: Mon, 15 Jul 2024 12:45:34 +0200 Subject: [PATCH 2/3] DIR Fix --- .github/workflows/publish-changelog.yml | 1 + Tools/actions_changelogs_since_last_run.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-changelog.yml b/.github/workflows/publish-changelog.yml index 18abe64aa7a..6e3f7215301 100644 --- a/.github/workflows/publish-changelog.yml +++ b/.github/workflows/publish-changelog.yml @@ -20,5 +20,6 @@ jobs: run: Tools/actions_changelogs_since_last_run.py env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CHANGELOG_DIR: ${{ vars.CHANGELOG_DIR }} DISCORD_WEBHOOK_URL: ${{ secrets.CHANGELOG_DISCORD_WEBHOOK }} continue-on-error: true diff --git a/Tools/actions_changelogs_since_last_run.py b/Tools/actions_changelogs_since_last_run.py index e24e74c51f5..862f9408d8a 100755 --- a/Tools/actions_changelogs_since_last_run.py +++ b/Tools/actions_changelogs_since_last_run.py @@ -21,7 +21,7 @@ DISCORD_SPLIT_LIMIT = 2000 DISCORD_WEBHOOK_URL = os.environ.get("DISCORD_WEBHOOK_URL") -CHANGELOG_FILE = "Resources/Changelog/DeltaVChangelog.yml" +CHANGELOG_FILE = os.environ.get("CHANGELOG_DIR") TYPES_TO_EMOJI = { "Fix": "🐛", @@ -165,7 +165,7 @@ def send_to_discord(entries: Iterable[ChangelogEntry]) -> None: # Flush the group to the message message_content.write(group_text) - + # Clean up anything remaining message_text = message_content.getvalue() if len(message_text) > 0: From f8dda0bbb5c1b6dd61081d59c8b4025a0f6b2c68 Mon Sep 17 00:00:00 2001 From: FoxxoTrystan Date: Mon, 15 Jul 2024 12:54:07 +0200 Subject: [PATCH 3/3] fix id --- Resources/Changelog/Floof.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/Resources/Changelog/Floof.yml b/Resources/Changelog/Floof.yml index b7424c8c0a8..28004221717 100644 --- a/Resources/Changelog/Floof.yml +++ b/Resources/Changelog/Floof.yml @@ -4,4 +4,5 @@ Entries: - author: FoxxoTrystan changes: - {message: 'Created the Floof Station changelog.', type: Add} + id: 1 time: '2024-7-12T00:00:00.0000000+00:00'