Download CS2 Files #20498
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Download CS2 Files | |
on: | |
schedule: | |
- cron: "0 8,20 * * *" | |
workflow_dispatch: | |
jobs: | |
download: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Dependencies | |
run: npm install | |
- name: Download new game files | |
run: npm run dev '${{ secrets.USERNAME }}' '${{ secrets.PASSWORD }}' | |
- name: Read manifestId.txt | |
id: manifestId | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: ./public/static/manifestId.txt | |
- name: Commit & push changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "📄 Manifest: ${{ steps.manifestId.outputs.content }}" |