diff options
| author | Jun Aruga <jaruga@redhat.com> | 2024-02-16 00:19:43 +0100 |
|---|---|---|
| committer | Jun Aruga <junaruga@users.noreply.github.com> | 2024-02-16 19:57:51 +0100 |
| commit | bac692f50870b3ede3a152a5b741d1eb22a7df0e (patch) | |
| tree | 49b6240e6c6bc27bad1a8ffdbf683d512e1bc96f | |
| parent | 24645cff0d5265d0da6df5953cb19c1e072e5a46 (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
```
| -rw-r--r-- | .github/workflows/macos.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/ubuntu.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/yjit-macos.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/yjit-ubuntu.yml | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 9449e136dd..52ba66dd0f 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -105,6 +105,7 @@ jobs: needs: [make] steps: - run: exit 1 + working-directory: if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} defaults: 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: diff --git a/.github/workflows/yjit-macos.yml b/.github/workflows/yjit-macos.yml index 3c9b94e1ba..6413e6b5ee 100644 --- a/.github/workflows/yjit-macos.yml +++ b/.github/workflows/yjit-macos.yml @@ -138,6 +138,7 @@ jobs: needs: [make] steps: - run: exit 1 + working-directory: if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} defaults: diff --git a/.github/workflows/yjit-ubuntu.yml b/.github/workflows/yjit-ubuntu.yml index 6354c39084..207089d86a 100644 --- a/.github/workflows/yjit-ubuntu.yml +++ b/.github/workflows/yjit-ubuntu.yml @@ -194,6 +194,7 @@ jobs: needs: [make] steps: - run: exit 1 + working-directory: if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} defaults: |
