-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.13 KB
/
Curator sync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 }}