Skip to content

Sync

Sync #1526

Workflow file for this run

name: Sync
on:
push:
branches:
- master
workflow_dispatch:
jobs:
Sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Validate composer.json
run: composer validate
- name: Cache dependencies
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}
- name: Install dependencies
run: composer install --no-interaction --no-progress
- name: Acquire snapshots
run: |
snapshots=$(vendor/bin/250\ data download-last2 | head -1) && echo "$snapshots"
echo "db=\"$(cut -f3 <<<"$snapshots")\"" | tee -a "$GITHUB_ENV"
env:
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }}
- name: Curator sync
run: bin/curator -v sync "${{ env.db }}" 32686107 Club_250 -p "$STEAM_PASSWORD"
env:
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}