Skip to content

Commit 8e30800

Browse files
authored
ci: Fix: add bash shell to actions & use pull_request_target only for premerge (#9)
Signed-off-by: Vishal Kumar <viskuma@qti.qualcomm.com>
1 parent ecff6bf commit 8e30800

File tree

2 files changed

+45
-46
lines changed

2 files changed

+45
-46
lines changed
Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
name: Pull docker image from ghcr
2-
description: Pull docker image from ghcr
3-
4-
inputs:
5-
image:
6-
description: The docker image to pull
7-
required: true
8-
default: kmake-image:latest
9-
10-
github_token:
11-
description: The GitHub token to use for authentication
12-
required: true
13-
14-
runs:
15-
using: "composite"
16-
steps:
17-
- name: Clone kmake-image
18-
run: |
19-
git clone https://github.com/qualcomm-linux/kmake-image.git
20-
21-
- name: Build docker image
22-
run: |
23-
cd kmake-image
24-
docker build . -t kmake-image
1+
name: Pull docker image
2+
description: Pull docker image
3+
4+
inputs:
5+
image:
6+
description: The docker image to pull
7+
required: true
8+
default: kmake-image:latest
9+
10+
github_token:
11+
description: The GitHub token to use for authentication
12+
required: true
13+
14+
runs:
15+
using: "composite"
16+
steps:
17+
- name: Clone kmake-image
18+
shell: bash
19+
run: |
20+
git clone https://github.com/qualcomm-linux/kmake-image.git
21+
22+
- name: Build docker image
23+
shell: bash
24+
run: |
25+
cd kmake-image
26+
docker build . -t kmake-image

.github/workflows/pre_merge.yml

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
name: pre_merge
2-
on:
3-
pull_request_target:
4-
branches:
5-
- qcom-next-staging
6-
pull_request:
7-
branches:
8-
- qcom-next-staging
9-
10-
jobs:
11-
build:
12-
uses: ./.github/workflows/build.yml
13-
secrets: inherit
14-
with:
15-
docker_image: kmake-image:latest
16-
17-
test:
18-
needs: [build]
19-
uses: ./.github/workflows/test.yml
20-
secrets: inherit
21-
with:
22-
docker_image: kmake-image:latest
1+
name: pre_merge
2+
on:
3+
pull_request_target:
4+
branches:
5+
- qcom-next-staging
6+
7+
jobs:
8+
build:
9+
uses: ./.github/workflows/build.yml
10+
secrets: inherit
11+
with:
12+
docker_image: kmake-image:latest
13+
14+
test:
15+
needs: [build]
16+
uses: ./.github/workflows/test.yml
17+
secrets: inherit
18+
with:
19+
docker_image: kmake-image:latest

0 commit comments

Comments
 (0)