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:
Jun Aruga 2024-02-16 00:19:43 +01:00 committed by Jun Aruga
parent 24645cff0d
commit bac692f508
4 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,7 @@ jobs:
needs: [make]
steps:
- run: exit 1
working-directory:
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
defaults:

View File

@ -123,6 +123,7 @@ jobs:
needs: [make]
steps:
- run: exit 1
working-directory:
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
defaults:

View File

@ -138,6 +138,7 @@ jobs:
needs: [make]
steps:
- run: exit 1
working-directory:
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
defaults:

View File

@ -194,6 +194,7 @@ jobs:
needs: [make]
steps:
- run: exit 1
working-directory:
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
defaults: