Manifest Download #1386
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manifest Download | |
on: | |
schedule: | |
- cron: '0 */1 * * *' | |
workflow_dispatch: | |
inputs: | |
account-concurrency: | |
description: 'Account concurrency' | |
required: true | |
default: 32 | |
type: number | |
manifest-concurrency: | |
description: 'Manifest concurrency' | |
required: true | |
default: 8 | |
type: number | |
concurrency: | |
group: download | |
cancel-in-progress: true | |
jobs: | |
download: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
submodules: true | |
fetch-depth: 0 | |
fetch-tags: true | |
filter: blob:limit=100k | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
cache: true | |
- name: Restore serverlist | |
uses: actions/cache/restore@v4 | |
with: | |
path: servers.bin | |
key: ${{ runner.os }}-servers- | |
restore-keys: ${{ runner.os }}-servers- | |
- name: Restore previous build | |
uses: actions/cache@v4 | |
id: binaries | |
with: | |
path: | | |
bin/ | |
obj/ | |
key: ${{ runner.os }}-bin-${{ github.sha }} | |
- name: Build manifest downloader | |
if: steps.binaries.outputs.cache-hit != 'true' | |
run: dotnet build --configuration Release | |
- name: Download manifest | |
run: dotnet run --no-build --configuration Release -- download -t ${{ secrets.GITHUB_TOKEN }} -c ${{ github.event.inputs.account-concurrency || 32 }} -p ${{ github.event.inputs.manifest-concurrency || 8 }} -k ${{ secrets.AES_KEY }} | |
- name: Save serverlist | |
uses: actions/cache/save@v4 | |
with: | |
path: servers.bin | |
key: ${{ runner.os }}-servers-${{ hashFiles('servers.bin') }} |