2020-03-14 02:00:37 -05:00
|
|
|
on: push
|
|
|
|
|
2021-08-10 14:40:20 -05:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: /tmp
|
|
|
|
|
2020-03-14 02:00:37 -05:00
|
|
|
jobs:
|
|
|
|
workdir:
|
|
|
|
runs-on: ubuntu-latest
|
2021-08-10 14:40:20 -05:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: /root
|
2020-03-14 02:00:37 -05:00
|
|
|
steps:
|
2021-08-10 14:40:20 -05:00
|
|
|
- run: '[[ "$(pwd)" == "/root" ]]'
|
|
|
|
|
|
|
|
- run: mkdir -p "${GITHUB_WORKSPACE}/workdir"
|
|
|
|
|
|
|
|
- run: '[[ "$(pwd)" == "${GITHUB_WORKSPACE}/workdir" ]]'
|
|
|
|
working-directory: workdir
|
2020-03-14 02:00:37 -05:00
|
|
|
|
2021-08-10 14:40:20 -05:00
|
|
|
top-level-workdir:
|
2020-03-14 02:00:37 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-08-10 14:40:20 -05:00
|
|
|
- run: '[[ "$(pwd)" == "/tmp" ]]'
|
2023-03-28 07:24:03 -05:00
|
|
|
|
|
|
|
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 }}
|