Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
toyv0 committed Jan 21, 2024
1 parent 50ba58a commit 859697f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
name: Builds the subgraph to ensure it compiles correctly
runs-on: ubuntu-latest
env:
NETWORK_NAME: MAINNET
START_BLOCK_NUMBER_MAINNET: 17265505
NETWORK_NAME: mainnet
START_BLOCK_NUMBER: 17265505
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down Expand Up @@ -58,8 +58,8 @@ jobs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev'
env:
NETWORK_NAME: MAINNET
START_BLOCK_NUMBER_MAINNET: 17265505
NETWORK_NAME: mainnet
START_BLOCK_NUMBER: 17265505
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down Expand Up @@ -104,8 +104,8 @@ jobs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
env:
NETWORK_NAME: MAINNET
START_BLOCK_NUMBER_MAINNET: 17265505
NETWORK_NAME: mainnet
START_BLOCK_NUMBER: 17265505
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down
2 changes: 1 addition & 1 deletion sources/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const networkName = process.env.NETWORK_NAME;
export const startBlockNumber = Number(process.env[`START_BLOCK_NUMBER_${process.env.NETWORK_NAME}`]);
export const startBlockNumber = Number(process.env.START_BLOCK_NUMBER);

if (!(!Number.isNaN(startBlockNumber) && Number.isInteger(startBlockNumber)) && startBlockNumber > 0) {
console.error('Invalid or missing start block number');
Expand Down

0 comments on commit 859697f

Please sign in to comment.