Skip to content

Commit db9ee90

Browse files
committed
Set working directory to be a job-specific default
1 parent abc9629 commit db9ee90

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/ansible.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ concurrency:
2828
permissions:
2929
contents: write
3030

31-
defaults:
32-
run:
33-
working-directory: 'deployments/ansible'
34-
3531
env:
3632
GO_VERSION: 1.23.8
3733

@@ -173,6 +169,9 @@ jobs:
173169
lint:
174170
name: Lint
175171
runs-on: ubuntu-24.04
172+
defaults:
173+
run:
174+
working-directory: 'deployments/ansible'
176175
steps:
177176
- name: Check out the codebase.
178177
uses: actions/checkout@v4
@@ -192,6 +191,9 @@ jobs:
192191
name: Linux Test
193192
needs: [lint, build-package]
194193
runs-on: ubuntu-24.04
194+
defaults:
195+
run:
196+
working-directory: 'deployments/ansible'
195197
strategy:
196198
fail-fast: false
197199
matrix:
@@ -254,6 +256,9 @@ jobs:
254256
name: Windows Test
255257
needs: lint
256258
runs-on: ubuntu-24.04
259+
defaults:
260+
run:
261+
working-directory: 'deployments/ansible'
257262
timeout-minutes: 60
258263
strategy:
259264
fail-fast: false
@@ -339,6 +344,9 @@ jobs:
339344
name: Push Release Tag
340345
needs: lint
341346
runs-on: ubuntu-24.04
347+
defaults:
348+
run:
349+
working-directory: 'deployments/ansible'
342350
if: github.ref == 'refs/heads/main'
343351
steps:
344352
- name: Checkout

0 commit comments

Comments
 (0)