Skip to content

Commit 05408da

Browse files
committed
Revert "github: drop redundant kdevops checkout"
Revert checkout and use custom unique workdir path. GitHub needs to checkout first to use project workflow files. Restore it but use the custom path ("Relative path under $GITHUB_WORKSPACE to place the repository") for concurrent jobs in the same runner. And cleanup before fetching (clean: true -> Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching; default true). https://github.com/actions/checkout # Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching # Default: true clean: '' Error: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/data4-xfs/gh/actions-runner/kdevops-ci-0004/_work/kdevops/kdevops/.git hub/actions/setup'. Did you forget to run actions/checkout before running your local action? This reverts commit 9f04539. Signed-off-by: Daniel Gomez <[email protected]>
1 parent bce4f25 commit 05408da

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

.github/actions/setup/action.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ inputs:
2828
runs:
2929
using: "composite"
3030
steps:
31-
- name: Create workspace directory
32-
shell: bash
33-
run: |
34-
set -euxo pipefail
35-
rm --recursive --force --verbose ${{ inputs.dir }}
36-
mkdir --parent --verbose ${{ inputs.dir }}
37-
3831
- name: Configure git
3932
shell: bash
4033
run: |
@@ -43,13 +36,6 @@ runs:
4336
git config --global user.name "kdevops"
4437
git config --global user.email "[email protected]"
4538
46-
- name: Checkout kdevops
47-
working-directory: ${{ inputs.dir }}
48-
shell: bash
49-
run: |
50-
set -euxo pipefail
51-
git clone /mirror/kdevops.git --branch main kdevops
52-
5339
- name: Make sure our repo kdevops defconfig exists
5440
id: defconfig
5541
working-directory: ${{ inputs.dir }}/kdevops

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
|| fromJSON('["self-hosted", "Linux", "X64", "linux-ci"]')
4141
}}
4242
steps:
43+
- name: Checkout kdevops
44+
uses: actions/checkout@v4
45+
with:
46+
path: ${{ inputs.ci_workflow }}-${{ github.run_id }}/kdevops
47+
4348
- name: kdevops setup
4449
uses: ./.github/actions/setup
4550
with:

0 commit comments

Comments
 (0)