Skip to content

Commit

Permalink
Add workflow to generate new token lists every 24h
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed Nov 28, 2024
1 parent bfbf356 commit 323c3b4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,5 @@ jobs:
uses: ./.github/workflows/generate-token-lists.yml
with:
environment: 'Test'
firstTimeGeneration: false
secrets: inherit
1 change: 1 addition & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ jobs:
uses: ./.github/workflows/generate-token-lists.yml
with:
environment: 'CI'
firstTimeGeneration: false
secrets: inherit
10 changes: 10 additions & 0 deletions .github/workflows/generate-token-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,23 @@ on:
type: environment
default: Test
required: true
firstTimeGeneration:
description: 'Generate new orbit chains for the first time'
type: boolean
default: false
required: true
workflow_call:
inputs:
environment:
description: 'Environment to run generation'
type: string
required: true
default: 'Test'
firstTimeGeneration:
description: 'Generate new orbit chains for the first time'
type: boolean
default: false
required: true

jobs:
install:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/generateNewOrbitChainTokenList.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Generate new orbit chain token list

on:
schedule:
# Every day at 9:00
- cron: '0 9 * * *'

jobs:
generate-token-lists:
uses: ./.github/workflows/generate-token-lists.yml
with:
environment: 'Test'
firstTimeGeneration: true
secrets: inherit

0 comments on commit 323c3b4

Please sign in to comment.