Skip to content

Commit 7c2691d

Browse files
committed
Remove folder input
1 parent b53f6eb commit 7c2691d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/gametracking.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
appid:
77
required: true
88
type: string
9-
folder:
10-
required: true
11-
type: string
129
branch:
1310
required: false
1411
type: string
@@ -57,7 +54,7 @@ jobs:
5754
uses: actions/checkout@v6
5855
with:
5956
fetch-depth: 1
60-
path: ${{ inputs.folder }}
57+
path: tracked_game
6158

6259
- name: Setup Go
6360
if: steps.cache.outputs.cache-hit != 'true'
@@ -81,19 +78,19 @@ jobs:
8178
- name: Check for package-lock.json
8279
id: package-lock-json-exists
8380
shell: bash
84-
run: echo "exists=$(test -f ${{ github.workspace }}/${{ inputs.folder }}/package-lock.json && echo true || echo false)" >> $GITHUB_OUTPUT
81+
run: echo "exists=$(test -f ${{ github.workspace }}/tracked_game/package-lock.json && echo true || echo false)" >> $GITHUB_OUTPUT
8582

8683
- name: Setup Node.js
8784
if: steps.package-lock-json-exists.outputs.exists == 'true'
8885
uses: actions/setup-node@v6
8986
with:
9087
node-version: '22'
9188
cache: 'npm'
92-
cache-dependency-path: ${{ github.workspace }}/${{ inputs.folder }}/package-lock.json
89+
cache-dependency-path: ${{ github.workspace }}/tracked_game/package-lock.json
9390

9491
- name: Install Node.js dependencies
9592
if: steps.package-lock-json-exists.outputs.exists == 'true'
96-
working-directory: ${{ github.workspace }}/${{ inputs.folder }}
93+
working-directory: ${{ github.workspace }}/tracked_game
9794
run: npm ci
9895

9996
# Download and process
@@ -104,14 +101,14 @@ jobs:
104101
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
105102
106103
- name: Download app ${{ inputs.appid }}
107-
working-directory: ${{ github.workspace }}/${{ inputs.folder }}
104+
working-directory: ${{ github.workspace }}/tracked_game
108105
shell: bash
109106
run: |
110107
. ../common.sh
111108
$STEAM_FILE_DOWNLOADER_PATH --username "${{ secrets.STEAM_USERNAME }}" --password "${{ secrets.STEAM_PASSWORD }}" --appid "${{ inputs.appid }}" --output . --branch "${{ inputs.branch }}" ${{ inputs.save-manifest && '--save-manifest' || '' }}
112109
113110
- name: Run update script
114-
working-directory: ${{ github.workspace }}/${{ inputs.folder }}
111+
working-directory: ${{ github.workspace }}/tracked_game
115112
shell: bash
116113
run: ./update.sh
117114

0 commit comments

Comments
 (0)