forked from infyiff/backup
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.04 KB
/
rbx_api.yml
File metadata and controls
38 lines (32 loc) · 1.04 KB
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
name: Fetch Roblox API
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
fetch-api:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get Roblox Version
id: get_version
run: |
RAW=$(curl -s https://clientsettings.roblox.com/v2/client-version/WindowsStudio64/channel/LIVE)
VERSION=$(echo "$RAW" | grep -oP 'version-[a-zA-Z0-9]+')
echo "$VERSION" > deps_version.dat
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Fetch API
run: |
curl -s "http://setup.roblox.com/${VERSION}-API-Dump.json" -o rbx_api.dat
- name: Commit
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git add rbx_api.dat deps_version.dat
if git status --porcelain | grep -q .; then
git commit -m "update Roblox API"
git push
else
echo "no update"
fi