Skip to content

Commit

Permalink
Merge pull request #12 from Lumos-Programming/shion/configure-each-en…
Browse files Browse the repository at this point in the history
…v-gha

👷 configure each env variable in GHA
  • Loading branch information
Shion1305 authored Apr 21, 2024
2 parents 303263b + 72f93d3 commit 9ed0f6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/deploy-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:
runs-on:
- self-hosted
- Shion1305
environment: BotHostingProduction
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -24,3 +23,9 @@ jobs:
run: go build -o lumos-discord-bot .
- name: Run the bot in the background
run: nohup ./lumos-discord-bot &
with:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
TARGET_SERVER: ${{ secrets.TARGET_SERVER }}
WELCOME_CHANNEL: ${{ secrets.WELCOME_CHANNEL }}
MEMBER_ROLE_ID: ${{ secrets.MEMBER_ROLE_ID }}
TEST_USER_ID: ${{ secrets.TEST_USER_ID }}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (

func main() {
if err := godotenv.Load(); err != nil {
log.Printf(".env is not loaded")
log.Printf(".env file not found")
}
discordToken := os.Getenv(EnvDiscordToken)
welcomeChannel := os.Getenv(EnvWelcomeChannel)
Expand Down

0 comments on commit 9ed0f6e

Please sign in to comment.