Skip to content

Commit

Permalink
CI: Fix the no such file or directory error with the working directory.
Browse files Browse the repository at this point in the history
Fix the error with the working directory in the result job in some GitHub
Actions YAML files. I hit this error on my forked repository below.

https://github.com/junaruga/ruby/actions/runs/7921897724/job/21628462038?pr=2#step:2:11
```
Error: An error occurred trying to start process '/bin/bash' with working directory '/Users/runner/work/ruby/ruby/build'. No such file or directory
```
  • Loading branch information
junaruga committed Feb 16, 2024
1 parent 24645cf commit bac692f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/macos.yml
Expand Up @@ -105,6 +105,7 @@ jobs:
needs: [make]
steps:
- run: exit 1
working-directory:
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}

defaults:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu.yml
Expand Up @@ -123,6 +123,7 @@ jobs:
needs: [make]
steps:
- run: exit 1
working-directory:
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}

defaults:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/yjit-macos.yml
Expand Up @@ -138,6 +138,7 @@ jobs:
needs: [make]
steps:
- run: exit 1
working-directory:
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}

defaults:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/yjit-ubuntu.yml
Expand Up @@ -194,6 +194,7 @@ jobs:
needs: [make]
steps:
- run: exit 1
working-directory:
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}

defaults:
Expand Down

0 comments on commit bac692f

Please sign in to comment.