Skip to content

Commit 9a50c71

Browse files
committed
ci: lint on every branch, fix building?
1 parent e817de9 commit 9a50c71

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/build.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ name: Docker Build
22

33
on:
44
workflow_run:
5-
workflows: [ "Linting Checks" ]
6-
branches:
7-
- "svelte-rewrite"
8-
- "github-ci"
5+
workflows:
6+
- Linting Checks
97
types:
108
- completed
119

@@ -22,7 +20,7 @@ jobs:
2220
- name: Checkout code
2321
uses: actions/checkout@v4
2422
with:
25-
ref: github-ci
23+
ref: ${{ github.event.workflow_run.head_branch }}
2624

2725
- name: Setup docker buildx
2826
uses: docker/setup-buildx-action@v3
@@ -54,7 +52,7 @@ jobs:
5452
- name: Checkout code
5553
uses: actions/checkout@v4
5654
with:
57-
ref: github-ci
55+
ref: ${{ github.event.workflow_run.head_branch }}
5856

5957
- name: Setup docker buildx
6058
uses: docker/setup-buildx-action@v3

.github/workflows/linting.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ name: Linting Checks
22

33
on:
44
push:
5-
branches:
6-
- "svelte-rewrite"
5+
branches: ["*"]
76
pull_request:
8-
branches:
9-
- '**'
7+
branches: ["*"]
108
workflow_dispatch:
119

1210
jobs:

0 commit comments

Comments
 (0)