diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aef867ea..69cca71e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,4 +89,5 @@ jobs: uses: ./.github/workflows/generate-token-lists.yml with: environment: 'Test' + firstTimeGeneration: false secrets: inherit diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index bb3bca29..76268adf 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -9,4 +9,5 @@ jobs: uses: ./.github/workflows/generate-token-lists.yml with: environment: 'CI' + firstTimeGeneration: false secrets: inherit diff --git a/.github/workflows/generate-token-lists.yml b/.github/workflows/generate-token-lists.yml index 14730570..e23c3da1 100644 --- a/.github/workflows/generate-token-lists.yml +++ b/.github/workflows/generate-token-lists.yml @@ -9,6 +9,11 @@ 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: @@ -16,6 +21,11 @@ on: type: string required: true default: 'Test' + firstTimeGeneration: + description: 'Generate new orbit chains for the first time' + type: boolean + default: false + required: true jobs: install: diff --git a/.github/workflows/generateNewOrbitChainTokenList.yml b/.github/workflows/generateNewOrbitChainTokenList.yml new file mode 100644 index 00000000..e0621432 --- /dev/null +++ b/.github/workflows/generateNewOrbitChainTokenList.yml @@ -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