Skip to content

Commit 246ce1c

Browse files
committed
Run github actions on all branches
1 parent 904465a commit 246ce1c

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: cicd
22

33
on:
44
push:
5-
branches:
6-
- main
7-
tags:
8-
- "*"
95
pull_request:
106

117
jobs:
@@ -59,7 +55,7 @@ jobs:
5955

6056
build-docker:
6157
needs: unittest
62-
if: github.event_name == 'push'
58+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
6359
runs-on: ubuntu-latest
6460
permissions:
6561
contents: read
@@ -99,7 +95,7 @@ jobs:
9995
10096
build-packages:
10197
needs: unittest
102-
if: github.event_name == 'push'
98+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
10399
runs-on: ubuntu-latest
104100
permissions:
105101
contents: write

0 commit comments

Comments
 (0)