Fix test environment variable issues

This commit is contained in:
Vankka 2024-06-21 00:02:43 +03:00
parent f56d8c76e7
commit d876fd563d
No known key found for this signature in database
GPG Key ID: 62E48025ED4E7EBB
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ jobs:
env:
DISCORDSRV_AUTOTEST_BOT_TOKEN: ${{ secrets.DISCORDSRV_AUTOTEST_BOT_TOKEN }}
DISCORDSRV_AUTOTEST_CHANNEL_ID: ${{ secrets.DISCORDSRV_AUTOTEST_CHANNEL_ID }}
DISCORDSRV_AUTOTEST_FORUM_ID: ${{ secrets.DISCORDSRV_AUTOTEST_FORUM_ID }}
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:

View File

@ -237,7 +237,7 @@ public class MockDiscordSRV extends AbstractDiscordSRV<IBootstrap, MainConfig, C
}
};
if (StringUtils.isNotEmpty(FullBootExtension.TEST_CHANNEL_ID)) {
if (StringUtils.isNotEmpty(FullBootExtension.TEST_CHANNEL_ID) && StringUtils.isNotEmpty(FullBootExtension.FORUM_CHANNEL_ID)) {
ChannelConfig global = (ChannelConfig) config.channels.get(GameChannel.DEFAULT_NAME);
DestinationConfig destination = global.destination = new DestinationConfig();