Skip to content

Commit 3423a3c

Browse files
committed
ci: Fix: enable pre_merge CI workflow for all branches
The pre-merge process should be utilized for kernel-topics as well and must be accessible across all branches. Additionally, the bash shell has been removed from the checkout code. Signed-off-by: Vishal Kumar <viskuma@qti.qualcomm.com>
1 parent a80388e commit 3423a3c

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/actions/sync/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ outputs:
1717
runs:
1818
using: "composite"
1919
steps:
20+
- name: Clean workspace
21+
shell: bash
22+
run: |
23+
echo "Cleaning up workspace..."
24+
rm -rf ${{ github.workspace }}/*
25+
echo "Workspace cleaned successfully!"
26+
2027
- name: Checkout PR branch
2128
if: inputs.base_branch == 'qcom-next-staging'
2229
uses: actions/checkout@v4
23-
shell: bash
2430
with:
2531
fetch-depth: 0
2632

@@ -82,3 +88,5 @@ runs:
8288
echo "workspace=${{ github.workspace }}" >> "$GITHUB_OUTPUT"
8389
else
8490
echo "workspace=${{ github.workspace }}/kernel" >> "$GITHUB_OUTPUT"
91+
fi
92+

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ jobs:
1313
group: GHA-Kernel-SelfHosted-RG
1414
labels: [ self-hosted, kernel-prd-u2404-x64-large-od-ephem ]
1515
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
1621
- name: Sync codebase
1722
id: sync
1823
uses: ./.github/actions/sync

.github/workflows/pre_merge.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: pre_merge
22
on:
33
pull_request_target:
4-
branches:
5-
- qcom-next-staging
64

75
jobs:
86
build:

0 commit comments

Comments
 (0)