Skip to content

Commit b5aeb32

Browse files
✨ Support working directory forwarding
1 parent 6984c08 commit b5aeb32

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ inputs:
3838
required: false
3939
default: ''
4040

41+
working-directory:
42+
description: Specifies the working directory where commands are run.
43+
required: false
44+
default: ''
45+
4146
runs:
4247
using: 'composite'
4348
steps:
@@ -47,6 +52,7 @@ runs:
4752
sudo apt-get update
4853
sudo apt-get install --yes ${{ inputs.apt-packages }}
4954
shell: bash
55+
working-directory: ${{ inputs.working-directory }}
5056

5157
- name: Tune PostgreSQL for test performance
5258
if: ${{ inputs.pg-service != '' && inputs.optimize-postgres == 'yes' }}
@@ -69,6 +75,7 @@ runs:
6975
7076
echo "Done configuring PostgreSQL for faster tests."
7177
shell: bash
78+
working-directory: ${{ inputs.working-directory }}
7279

7380
- uses: actions/setup-python@v4
7481
with:
@@ -82,6 +89,7 @@ runs:
8289
--use-pep517 \
8390
--use-feature=no-binary-enable-wheel-cache
8491
shell: bash
92+
working-directory: ${{ inputs.working-directory }}
8593

8694
# TODO: enable cache
8795
- uses: actions/setup-node@v3
@@ -95,4 +103,5 @@ runs:
95103
npm ci ${{ inputs.npm-ci-flags }}
96104
npm run build
97105
shell: bash
106+
working-directory: ${{ inputs.working-directory }}
98107

0 commit comments

Comments
 (0)