-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (33 loc) · 1.37 KB
/
workflow.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
name: Download CS Game Files
on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:
jobs:
download:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
- name: Download new game files
run: npm install && node index.js '${{ secrets.USERNAME }}' '${{ secrets.PASSWORD }}'
- name: Run Decompiler for pak01_dir.vpk with ValveResourceFormat 8.1
run: |
if [ -f "./temp/pak01_dir.vpk" ]; then
chmod +x ./Decompiler
./Decompiler -i "./temp/pak01_dir.vpk" -o "./static" -e "vtex_c" -d -f "panorama/images/econ"
else
echo "pak01_dir.vpk not found, skipping decompilation"
fi
- name: Read manifestId.txt
id: manifestId
uses: juliangruber/read-file-action@v1
with:
path: ./static/manifestId.txt
- name: Commit & push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "manifest ${{ steps.manifestId.outputs.content }}"