CI: Fix the no such file or directory error with the working directory.
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 ```
This commit is contained in:
parent
24645cff0d
commit
bac692f508
1
.github/workflows/macos.yml
vendored
1
.github/workflows/macos.yml
vendored
@ -105,6 +105,7 @@ jobs:
|
||||
needs: [make]
|
||||
steps:
|
||||
- run: exit 1
|
||||
working-directory:
|
||||
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
|
||||
|
||||
defaults:
|
||||
|
1
.github/workflows/ubuntu.yml
vendored
1
.github/workflows/ubuntu.yml
vendored
@ -123,6 +123,7 @@ jobs:
|
||||
needs: [make]
|
||||
steps:
|
||||
- run: exit 1
|
||||
working-directory:
|
||||
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
|
||||
|
||||
defaults:
|
||||
|
1
.github/workflows/yjit-macos.yml
vendored
1
.github/workflows/yjit-macos.yml
vendored
@ -138,6 +138,7 @@ jobs:
|
||||
needs: [make]
|
||||
steps:
|
||||
- run: exit 1
|
||||
working-directory:
|
||||
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
|
||||
|
||||
defaults:
|
||||
|
1
.github/workflows/yjit-ubuntu.yml
vendored
1
.github/workflows/yjit-ubuntu.yml
vendored
@ -194,6 +194,7 @@ jobs:
|
||||
needs: [make]
|
||||
steps:
|
||||
- run: exit 1
|
||||
working-directory:
|
||||
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
|
||||
|
||||
defaults:
|
||||
|
Loading…
x
Reference in New Issue
Block a user