diff options
Diffstat (limited to 'pkg/runner/testdata/workdir/push.yml')
-rw-r--r-- | pkg/runner/testdata/workdir/push.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkg/runner/testdata/workdir/push.yml b/pkg/runner/testdata/workdir/push.yml new file mode 100644 index 0000000..b76a951 --- /dev/null +++ b/pkg/runner/testdata/workdir/push.yml @@ -0,0 +1,34 @@ +on: push + +defaults: + run: + working-directory: /tmp + +jobs: + workdir: + runs-on: ubuntu-latest + defaults: + run: + working-directory: /root + steps: + - run: '[[ "$(pwd)" == "/root" ]]' + + - run: mkdir -p "${GITHUB_WORKSPACE}/workdir" + + - run: '[[ "$(pwd)" == "${GITHUB_WORKSPACE}/workdir" ]]' + working-directory: workdir + + top-level-workdir: + 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 }} |