From 4d6f924040c2dfaa059465325cae2906d4093d39 Mon Sep 17 00:00:00 2001 From: Kyler Li Date: Tue, 17 Dec 2024 02:45:34 -0800 Subject: [PATCH] add notion secret to workflow --- .github/workflows/flyio.yml | 2 +- TrickFireDiscordBot/RoleSyncer.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/flyio.yml b/.github/workflows/flyio.yml index 1a41640..c1fb3d7 100644 --- a/.github/workflows/flyio.yml +++ b/.github/workflows/flyio.yml @@ -11,7 +11,7 @@ jobs: - name: Create secrets file run: | touch secrets.txt - echo -e "${{secrets.BOT_TOKEN}}" >> secrets.txt + echo -e "${{secrets.BOT_TOKEN}}\n${{secrets.NOTION_SECRET}}" >> secrets.txt - name: Setup flyctl uses: superfly/flyctl-actions/setup-flyctl@master diff --git a/TrickFireDiscordBot/RoleSyncer.cs b/TrickFireDiscordBot/RoleSyncer.cs index fb85232..4d93311 100644 --- a/TrickFireDiscordBot/RoleSyncer.cs +++ b/TrickFireDiscordBot/RoleSyncer.cs @@ -57,6 +57,8 @@ private void OnWebhook(HttpListenerRequest request) } SyncRoles(page).GetAwaiter().GetResult(); + + Console.WriteLine(JsonConvert.SerializeObject(page, Formatting.Indented)); } private async Task SyncRoles(Page notionPage)