Skip to content

Commit 6a18783

Browse files
Fix pre-release and build workflows
Added fix to workflows. * Added a defaults section to the GitHub Actions workflows (build.yml and pre-release.yml) to set the working-directory to inventory-manager. ## WHY It Matters - This change standardizes the working directory for the build and pre-release jobs, ensuring that all commands run in the correct context, which can help prevent errors related to file paths.
2 parents b73eead + 66635ae commit 6a18783

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ permissions:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: inventory-manager
1316
steps:
1417
- uses: actions/checkout@v4
1518
- uses: actions/setup-node@v4

.github/workflows/pre-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ permissions:
1010
jobs:
1111
nightly:
1212
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: inventory-manager
1316
steps:
1417
- uses: actions/checkout@v4
1518
- uses: actions/setup-node@v4

0 commit comments

Comments
 (0)