summaryrefslogtreecommitdiff
path: root/.github/workflows/ubuntu.yml
diff options
context:
space:
mode:
authorJun Aruga <jaruga@redhat.com>2024-02-16 00:19:43 +0100
committerJun Aruga <junaruga@users.noreply.github.com>2024-02-16 19:57:51 +0100
commitbac692f50870b3ede3a152a5b741d1eb22a7df0e (patch)
tree49b6240e6c6bc27bad1a8ffdbf683d512e1bc96f /.github/workflows/ubuntu.yml
parent24645cff0d5265d0da6df5953cb19c1e072e5a46 (diff)
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 ```
Diffstat (limited to '.github/workflows/ubuntu.yml')
-rw-r--r--.github/workflows/ubuntu.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 2a9c755146..7999965f04 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -123,6 +123,7 @@ jobs:
needs: [make]
steps:
- run: exit 1
+ working-directory:
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
defaults: