diff --git a/.github/workflows/cd-eu-ratings-latest.yml b/.github/workflows/cd-eu-ratings-latest.yml deleted file mode 100644 index dbcd36cb1..000000000 --- a/.github/workflows/cd-eu-ratings-latest.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: CD Europe Ratings Latest - -on: - schedule: - - cron: '0 0 * * *' - -jobs: - host: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Use node - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: 'npm' - - - name: Install Yarn - run: npm install --location=global yarn - - - name: Use node_modules cache - uses: actions/cache@v3 - with: - path: '**/node_modules' - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - - name: Install dependencies - run: yarn - - - name: Generate leaderboard - run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=eu --target=latest diff --git a/.github/workflows/cd-na-ratings-latest.yml b/.github/workflows/cd-na-ratings-latest.yml deleted file mode 100644 index 5b98bc8c7..000000000 --- a/.github/workflows/cd-na-ratings-latest.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: CD North America Ratings Latest - -on: - schedule: - - cron: '0 0 * * *' - -jobs: - host: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Use node - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: 'npm' - - - name: Install Yarn - run: npm install --location=global yarn - - - name: Use node_modules cache - uses: actions/cache@v3 - with: - path: '**/node_modules' - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - - name: Install dependencies - run: yarn - - - name: Generate leaderboard - run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=na --target=latest diff --git a/.github/workflows/cd-na-ratings-midnight.yml b/.github/workflows/cd-na-ratings-midnight.yml deleted file mode 100644 index 23249a2d4..000000000 --- a/.github/workflows/cd-na-ratings-midnight.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: CD North America Ratings Midnight - -on: - schedule: - - cron: '0 5 * * *' - -jobs: - host: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Use node - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: 'npm' - - - name: Install Yarn - run: npm install --location=global yarn - - - name: Use node_modules cache - uses: actions/cache@v3 - with: - path: '**/node_modules' - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - - name: Install dependencies - run: yarn - - - name: Generate leaderboard - run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=na --target=midnight diff --git a/.github/workflows/cd-asia-ratings-midnight.yml b/.github/workflows/cd-ratings-asia.yml similarity index 77% rename from .github/workflows/cd-asia-ratings-midnight.yml rename to .github/workflows/cd-ratings-asia.yml index 2c4426498..6135fc719 100644 --- a/.github/workflows/cd-asia-ratings-midnight.yml +++ b/.github/workflows/cd-ratings-asia.yml @@ -1,7 +1,11 @@ -name: CD Asia Ratings Midnight +name: CD Asia Ratings + +# latest: '0 0 * * *' +# asia midnight: '0 17 * * *' on: schedule: + - cron: '0 0 * * *' - cron: '0 17 * * *' jobs: @@ -31,4 +35,4 @@ jobs: run: yarn - name: Generate leaderboard - run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=asia --target=midnight + run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=asia --target=${{ github.event.schedule == '0 0 * * *' && 'latest' || 'midnight' }} diff --git a/.github/workflows/cd-eu-ratings-midnight.yml b/.github/workflows/cd-ratings-eu.yml similarity index 77% rename from .github/workflows/cd-eu-ratings-midnight.yml rename to .github/workflows/cd-ratings-eu.yml index 3c0b88eed..b0f0d0a78 100644 --- a/.github/workflows/cd-eu-ratings-midnight.yml +++ b/.github/workflows/cd-ratings-eu.yml @@ -1,7 +1,11 @@ -name: CD Europe Ratings Midnight +name: CD Europe Ratings + +# latest: '0 0 * * *' +# eu midnight: '0 23 * * *' on: schedule: + - cron: '0 0 * * *' - cron: '0 23 * * *' jobs: @@ -31,4 +35,4 @@ jobs: run: yarn - name: Generate leaderboard - run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=eu --target=midnight + run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=eu --target=${{ github.event.schedule == '0 0 * * *' && 'latest' || 'midnight' }} diff --git a/.github/workflows/cd-asia-ratings-latest.yml b/.github/workflows/cd-ratings-na.yml similarity index 76% rename from .github/workflows/cd-asia-ratings-latest.yml rename to .github/workflows/cd-ratings-na.yml index 93b327a33..8c91f1600 100644 --- a/.github/workflows/cd-asia-ratings-latest.yml +++ b/.github/workflows/cd-ratings-na.yml @@ -1,8 +1,12 @@ -name: CD Asia Ratings Latest +name: CD North America Ratings + +# latest: '0 0 * * *' +# na midnight: '0 5 * * *' on: schedule: - cron: '0 0 * * *' + - cron: '0 5 * * *' jobs: host: @@ -31,4 +35,4 @@ jobs: run: yarn - name: Generate leaderboard - run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=asia --target=latest + run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=na --target=${{ github.event.schedule == '0 0 * * *' && 'latest' || 'midnight' }}