Make sure working directory is respected when configured from matrix (#1686)

* Make sure working directory is respected when configured from matrix

* Fix regression by setting Workingdirectory on stepRun instead of step or too early
This commit is contained in:
Kris
2023-03-28 14:24:03 +02:00
committed by GitHub
parent 351ae99bc1
commit 75ffa205c4
2 changed files with 24 additions and 10 deletions

View File

@@ -22,3 +22,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: '[[ "$(pwd)" == "/tmp" ]]'
workdir-from-matrix:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
work_dir: ["/tmp", "/root"]
steps:
- run: '[[ "$(pwd)" == "${{ matrix.work_dir }}" ]]'
working-directory: ${{ matrix.work_dir }}