Skip to content

Commit de21814

Browse files
committed
added environment name
1 parent 014758a commit de21814

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/register-commands-production.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
jobs:
66
Register-Commands:
77
runs-on: ubuntu-latest
8-
environment: staging
8+
environment: production
99
steps:
1010
- uses: actions/checkout@v2
1111
- run: npm install
@@ -27,7 +27,9 @@ jobs:
2727
secrets: |
2828
DISCORD_PUBLIC_KEY
2929
DISCORD_TOKEN
30+
CURRENT_ENVIRONMENT
3031
env:
32+
CURRENT_ENVIRONMENT: production
3133
CLOUDFLARE_API_TOKEN: ${{secrets.CLOUDFLARE_API_TOKEN}}
3234
DISCORD_PUBLIC_KEY: ${{secrets.DISCORD_PUBLIC_KEY}}
3335
DISCORD_TOKEN: ${{secrets.DISCORD_TOKEN}}

.github/workflows/register-commands-staging.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
secrets: |
2828
DISCORD_PUBLIC_KEY
2929
DISCORD_TOKEN
30+
CURRENT_ENVIRONMENT
3031
env:
32+
CURRENT_ENVIRONMENT: staging
3133
CLOUDFLARE_API_TOKEN: ${{secrets.CLOUDFLARE_API_TOKEN}}
3234
DISCORD_PUBLIC_KEY: ${{secrets.DISCORD_PUBLIC_KEY}}
3335
DISCORD_TOKEN: ${{secrets.DISCORD_TOKEN}}

0 commit comments

Comments
 (0)