Skip to content

Commit

Permalink
Add env variable config
Browse files Browse the repository at this point in the history
  • Loading branch information
gumil committed Jun 19, 2020
1 parent 6af47a7 commit fa3e06f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ on:
pull_request:
branches: [ master ]

env:
NOOK_BOT: ${{ secrets.NOOK_BOT }}

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:

name: Create Release

env:
NOOK_BOT: ${{ secrets.NOOK_BOT }}

jobs:
build:
name: Create Release
Expand Down
6 changes: 6 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ repositories {
}

kotless {
webapp {
lambda {
environment["NOOK_BOT"] = (System.getenv("NOOK_BOT"))
}
}

config {
bucket = "dev.gumil.nookbot"

Expand Down

0 comments on commit fa3e06f

Please sign in to comment.