Skip to content

Commit 47f532f

Browse files
rfayclaude
andcommitted
ci: fix tilde expansion in coder ssh commands, for #71
Replace ~/drupal-core with /home/coder/drupal-core — tilde does not expand when passed as a literal argument through coder ssh. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ddcaabe commit 47f532f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/drupal-integration-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126

127127
- &verify-webroot
128128
name: Verify workspace — web root exists
129-
run: coder ssh ${{ env.WORKSPACE_NAME }} -- test -f ~/drupal-core/web/index.php
129+
run: coder ssh ${{ env.WORKSPACE_NAME }} -- test -f /home/coder/drupal-core/web/index.php
130130

131131
- &verify-drush
132132
name: Verify workspace — Drush DB connected
@@ -271,11 +271,11 @@ jobs:
271271
run: coder ssh ${{ env.WORKSPACE_NAME }} -- ddev --version
272272

273273
- name: Verify workspace — web root exists
274-
run: coder ssh ${{ env.WORKSPACE_NAME }} -- test -f ~/drupal-core/web/index.php
274+
run: coder ssh ${{ env.WORKSPACE_NAME }} -- test -f /home/coder/drupal-core/web/index.php
275275

276276
- name: Verify workspace — issue branch checked out
277277
run: |
278-
CURRENT=$(coder ssh ${{ env.WORKSPACE_NAME }} -- git -C ~/drupal-core/repos/drupal branch --show-current)
278+
CURRENT=$(coder ssh ${{ env.WORKSPACE_NAME }} -- git -C /home/coder/drupal-core/repos/drupal branch --show-current)
279279
echo "Current branch: $CURRENT Expected: ${{ env.ISSUE_BRANCH }}"
280280
[[ "$CURRENT" == "${{ env.ISSUE_BRANCH }}" ]] || { echo "ERROR: wrong branch" >&2; exit 1; }
281281

0 commit comments

Comments
 (0)