Skip to content

Commit ec43277

Browse files
committed
github: unique worflow directory per run_id
In case GitHub runner switches to another kdevops-ci job, make the working directory unique so they can go back and continue with the job left. Signed-off-by: Daniel Gomez <[email protected]>
1 parent 13f54d8 commit ec43277

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: ./.github/actions/setup
4545
with:
4646
ci_workflow: ${{ inputs.ci_workflow }}
47-
dir: ${{ inputs.ci_workflow }}
47+
dir: ${{ inputs.ci_workflow }}-${{ github.run_id }}
4848
kernel_ref: ${{ inputs.kernel_ref }}
4949
kernel_tree: ${{ inputs.kernel_tree }}
5050
test_mode: ${{ inputs.test_mode }}
@@ -63,7 +63,7 @@ jobs:
6363
uses: ./.github/actions/test
6464
with:
6565
ci_workflow: ${{ inputs.ci_workflow }}
66-
dir: ${{ inputs.ci_workflow }}
66+
dir: ${{ inputs.ci_workflow }}-${{ github.run_id }}
6767
test_mode: ${{ inputs.test_mode }}
6868
tests: ${{ inputs.tests }}
6969

@@ -85,13 +85,13 @@ jobs:
8585
uses: ./.github/actions/archive
8686
with:
8787
ci_workflow: ${{ inputs.ci_workflow }}
88-
dir: ${{ inputs.ci_workflow }}
88+
dir: ${{ inputs.ci_workflow }}-${{ github.run_id }}
8989

9090
- name: Upload our kdevops results archive
9191
uses: actions/upload-artifact@v4
9292
with:
9393
name: kdevops-ci-results
94-
path: ${{ inputs.ci_workflow }}/kdevops/archive/*.zip
94+
path: ${{ inputs.ci_workflow }}-${{ github.run_id }}/kdevops/archive/*.zip
9595

9696
cleanup:
9797
name: Cleanup kdevops workspace
@@ -106,4 +106,4 @@ jobs:
106106
- name: kdevops cleanup
107107
uses: ./.github/actions/cleanup
108108
with:
109-
dir: ${{ inputs.ci_workflow }}
109+
dir: ${{ inputs.ci_workflow }}-${{ github.run_id }}

0 commit comments

Comments
 (0)