Skip to content

Commit af87475

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

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/build.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ name: Docker Build
33
on:
44
workflow_run:
55
workflows: [ "Linting Checks" ]
6-
branches:
7-
- "svelte-rewrite"
8-
- "github-ci"
9-
types:
10-
- completed
6+
branches: ["*"]
7+
types: [completed]
118

129
jobs:
1310
docker-build-frontend:
@@ -22,7 +19,7 @@ jobs:
2219
- name: Checkout code
2320
uses: actions/checkout@v4
2421
with:
25-
ref: github-ci
22+
ref: ${{ github.event.workflow_run.head_branch }}
2623

2724
- name: Setup docker buildx
2825
uses: docker/setup-buildx-action@v3
@@ -54,7 +51,7 @@ jobs:
5451
- name: Checkout code
5552
uses: actions/checkout@v4
5653
with:
57-
ref: github-ci
54+
ref: ${{ github.event.workflow_run.head_branch }}
5855

5956
- name: Setup docker buildx
6057
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)