Skip to content

Commit

Permalink
fix: add env to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Sep 26, 2024
1 parent ef2afdd commit 74e26be
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-ipfs-test-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
DOCS_ORIGIN: ${{ vars.DOCS_ORIGIN }}
HELP_ORIGIN: ${{ vars.HELP_ORIGIN }}
RESEARCH_ORIGIN: ${{ vars.RESEARCH_ORIGIN }}
BLOG_ORIGIN: ${{ vars.BLOG_ORIGIN }}
DEFAULT_CHAIN: ${{ vars.DEFAULT_CHAIN }}
SUPPORTED_CHAINS: ${{ vars.SUPPORTED_CHAINS }}
WIDGET_API_BASE_PATH_FOR_IPFS: ${{ vars.WIDGET_API_BASE_PATH_FOR_IPFS }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-ipfs-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
DOCS_ORIGIN: ${{ vars.DOCS_ORIGIN }}
HELP_ORIGIN: ${{ vars.HELP_ORIGIN }}
RESEARCH_ORIGIN: ${{ vars.RESEARCH_ORIGIN }}
BLOG_ORIGIN: ${{ vars.BLOG_ORIGIN }}
DEFAULT_CHAIN: ${{ vars.DEFAULT_CHAIN }}
SUPPORTED_CHAINS: ${{ vars.SUPPORTED_CHAINS }}
WIDGET_API_BASE_PATH_FOR_IPFS: ${{ vars.WIDGET_API_BASE_PATH_FOR_IPFS }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
DOCS_ORIGIN: ${{ vars.DOCS_ORIGIN }}
HELP_ORIGIN: ${{ vars.HELP_ORIGIN }}
RESEARCH_ORIGIN: ${{ vars.RESEARCH_ORIGIN }}
BLOG_ORIGIN: ${{ vars.BLOG_ORIGIN }}
DEFAULT_CHAIN: ${{ vars.DEFAULT_CHAIN }}
SUPPORTED_CHAINS: ${{ vars.SUPPORTED_CHAINS }}
WIDGET_API_BASE_PATH_FOR_IPFS: ${{ vars.WIDGET_API_BASE_PATH_FOR_IPFS }}
Expand Down
2 changes: 1 addition & 1 deletion env-dynamics.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const researchOrigin =
// Fix in the build time (build time don't have env vars)

/** @type string */
export const blogOrigin = process.env.RESEARCH_ORIGIN || 'https://blog.lido.fi';
export const blogOrigin = process.env.BLOG_ORIGIN || 'https://blog.lido.fi';
// Fix in the build time (build time don't have env vars)

// Keep fallback as in 'config/get-secret-config.ts'
Expand Down
4 changes: 2 additions & 2 deletions scripts/log-environment-variables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const openKeys = [
'DOCS_ORIGIN',
'HELP_ORIGIN',
'RESEARCH_ORIGIN',
'BLOG_ORIGIN',

'SUPPORTED_CHAINS',
'DEFAULT_CHAIN',
Expand Down Expand Up @@ -32,8 +33,7 @@ export const secretKeys = [
'EL_RPC_URLS_17000',
'EL_RPC_URLS_11155111',
'EL_RPC_URLS_11155420',
]

];

export const logOpenEnvironmentVariables = () => {
console.log('---------------------------------------------');
Expand Down

0 comments on commit 74e26be

Please sign in to comment.