Skip to content

Download CS Game Files #9

Download CS Game Files

Download CS Game Files #9

Workflow file for this run

name: Download CS Game Files
on:
schedule:
- cron: "0 12 * * *"
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
run: |
chmod +x ./Decompiler
./Decompiler -i "./temp/pak01_dir.vpk" -o "./static" -e "vtex_c" -d -f "panorama/images/econ"
- 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 }}"