Skip to content

Commit 2df0202

Browse files
committed
fix: Use absolute workspace path for VS Code binary downloads
The download-artifact action doesn't respect working-directory, so we need to use ${{ github.workspace }} to specify absolute paths. Added debug output to help troubleshoot any remaining issues.
1 parent cec933c commit 2df0202

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/vscode.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
workflow: ci.yml
5050
workflow_conclusion: success
5151
name: renamify-linux-x64
52-
path: ../renamify-bin
52+
path: ${{ github.workspace }}/renamify-bin
5353

5454
- name: Download renamify binary (macOS)
5555
if: runner.os == 'macOS'
@@ -58,7 +58,7 @@ jobs:
5858
workflow: ci.yml
5959
workflow_conclusion: success
6060
name: renamify-macos-x64
61-
path: ../renamify-bin
61+
path: ${{ github.workspace }}/renamify-bin
6262

6363
- name: Download renamify binary (Windows)
6464
if: runner.os == 'Windows'
@@ -67,18 +67,22 @@ jobs:
6767
workflow: ci.yml
6868
workflow_conclusion: success
6969
name: renamify-windows-x64
70-
path: ../renamify-bin
70+
path: ${{ github.workspace }}/renamify-bin
7171

7272
- name: Make binary executable and add to PATH
7373
shell: bash
7474
run: |
75-
ls -la ../renamify-bin/
75+
# Debug: show where we are and what's available
76+
echo "Current directory: $(pwd)"
77+
echo "Workspace: ${{ github.workspace }}"
78+
ls -la ${{ github.workspace }}/renamify-bin/
79+
7680
if [[ "$RUNNER_OS" == "Windows" ]]; then
77-
chmod +x ../renamify-bin/renamify.exe
78-
echo "$(cd .. && pwd)/renamify-bin" >> $GITHUB_PATH
81+
chmod +x ${{ github.workspace }}/renamify-bin/renamify.exe
82+
echo "${{ github.workspace }}/renamify-bin" >> $GITHUB_PATH
7983
else
80-
chmod +x ../renamify-bin/renamify
81-
echo "$(cd .. && pwd)/renamify-bin" >> $GITHUB_PATH
84+
chmod +x ${{ github.workspace }}/renamify-bin/renamify
85+
echo "${{ github.workspace }}/renamify-bin" >> $GITHUB_PATH
8286
fi
8387
8488
- name: Verify renamify is available

0 commit comments

Comments
 (0)