Skip to content

Commit

Permalink
Merge pull request #49 from 0xPolygon/DEVOPS-3354
Browse files Browse the repository at this point in the history
update workflow
  • Loading branch information
sreevalsanmr authored Oct 8, 2024
2 parents d98047c + b6044f9 commit 66d89d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
environment:
required: false
type: string
default: "dev"
default: "staging"
core_app:
required: false
type: string
Expand All @@ -21,10 +21,7 @@ jobs:
- name: Set Environment Variable
id: set-env-var
run: |
if [ "${{ inputs.environment }}" == "dev" ]; then
echo "ACCOUNT_NUMBER=058264511034" >> $GITHUB_OUTPUT
echo "APP_NAME=${{ inputs.core_app }}-dev" >> $GITHUB_OUTPUT
elif [ "${{ inputs.environment }}" == "staging" ]; then
if [ "${{ inputs.environment }}" == "staging" ]; then
echo "ACCOUNT_NUMBER=070528468658" >> $GITHUB_OUTPUT
echo "APP_NAME=${{ inputs.core_app }}-staging" >> $GITHUB_OUTPUT
elif [ "${{ inputs.environment }}" == "prod" ]; then
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
type: choice
description: "Select the environment to deploy to (optional for pushes)"
options:
- staging
- prod

jobs:
Expand Down

0 comments on commit 66d89d9

Please sign in to comment.