Skip to content

Commit 772f124

Browse files
committed
Add ability to set working directory
As we are working to move the openvox-agent vanagon repo into the openvox repo itself under the 'packaging' dir, this allows us to set the working directory for relevant build commands so we can operate out of that directory.
1 parent 2dab498 commit 772f124

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build_vanagon.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ on:
2020
required: false
2121
type: string
2222
default: 'main'
23+
working_directory:
24+
description: 'The directory inside the repo containing the vanagon project. For repos that are specifically vanagon projects, leave this as default.'
25+
required: false
26+
type: string
27+
default: '.'
2328

2429
env:
2530
VANAGON_LOCATION: "https://github.com/openvoxproject/vanagon#${{ inputs.vanagon_branch }}"
@@ -178,10 +183,12 @@ jobs:
178183
echo "none /cygdrive cygdrive binary,noacl,posix=0,user 0 0" | Out-File -FilePath C:\cygwin64\etc\fstab -Encoding ASCII
179184
180185
- name: Bundle install
186+
working-directory: ${{ inputs.working_directory }}
181187
run: bundle install --retry=3
182188

183189
- name: Run build script and save git describe
184190
id: build
191+
working-directory: ${{ inputs.working_directory }}
185192
run: |-
186193
rm -rf output
187194
DESCRIBE=$(git describe --abbrev=9)
@@ -190,11 +197,13 @@ jobs:
190197
191198
- name: Upload build artifacts
192199
uses: actions/upload-artifact@v4
200+
working-directory: ${{ inputs.working_directory }}
193201
with:
194202
name: build-artifacts-${{ steps.build.outputs.describe }}-${{ matrix.platform }}
195203
path: output/
196204

197205
- name: Upload output to S3
206+
working-directory: ${{ inputs.working_directory }}
198207
env:
199208
ENDPOINT_URL: ${{ secrets.S3_ENDPOINT_URL }}
200209
BUCKET_NAME: ${{ secrets.S3_ARTIFACTS_BUCKET_NAME }}

0 commit comments

Comments
 (0)