Skip to content

Commit 0f81a66

Browse files
committed
Fix github action
1 parent 967fb85 commit 0f81a66

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/build.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@ name: Build and Deploy
22
run-name: ${{ github.actor }} is building and deploying the app 🏗️
33
on:
44
push:
5+
branches:
6+
- main
57
# If we specify branches: [main] here it will run for any matching tags or push on branch main
68
tags: ['v[0-9].[0-9]+.[0-9]+']
79
workflow_dispatch:
810
permissions:
911
users:
1012
- github.repository_owner
1113

12-
1314
jobs:
1415
build-musl:
1516
runs-on: ubuntu-latest
16-
# So we need to put the condition in the if here
17-
if: ${{ (github.actor == github.event.repository.owner.login) && (github.ref == 'refs/heads/main') }}
18-
17+
1918
steps:
2019
- name: Run sccache-cache
2120
uses: mozilla-actions/sccache-action@v0.0.3
@@ -60,7 +59,6 @@ jobs:
6059
name: Deploy
6160
runs-on: ubuntu-latest
6261
needs: build-musl
63-
if: github.actor == github.event.repository.owner.login
6462

6563
steps:
6664
- name: Set the Kubernetes context

0 commit comments

Comments
 (0)