Skip to content

Commit dc5cb7f

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

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/build.yml

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

33
on:
44
workflow_run:
5-
workflows: [ "Linting Checks" ]
5+
workflows: ["Linting Checks"]
66
branches:
7-
- "svelte-rewrite"
8-
- "github-ci"
7+
- svelte-rewrite
98
types:
109
- completed
1110

@@ -22,7 +21,7 @@ jobs:
2221
- name: Checkout code
2322
uses: actions/checkout@v4
2423
with:
25-
ref: github-ci
24+
ref: ${{ github.event.workflow_run.head_branch || github.ref }}
2625

2726
- name: Setup docker buildx
2827
uses: docker/setup-buildx-action@v3
@@ -54,7 +53,7 @@ jobs:
5453
- name: Checkout code
5554
uses: actions/checkout@v4
5655
with:
57-
ref: github-ci
56+
ref: ${{ github.event.workflow_run.head_branch || github.ref }}
5857

5958
- name: Setup docker buildx
6059
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)