Skip to content

Commit de01a95

Browse files
authored
CLOUD-849 - Fix reviewdog for manifests on release branches (#651)
1 parent fe41b21 commit de01a95

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/reviewdog.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ jobs:
8686
- uses: actions/setup-go@v5
8787
with:
8888
go-version: '^1.21'
89-
- run: |
89+
- name: check on release branch
90+
if: ${{ contains(github.head_ref, 'release-') || contains(github.base_ref, 'release-') }}
91+
run: |
92+
make generate manifests VERSION="$(grep "Version" pkg/version/version.go|grep -oE "[0-9]+\.[0-9]+\.[0-9]+")" IMAGE_TAG_BASE="percona/percona-server-mysql-operator"
93+
git diff --exit-code
94+
- name: check on non release branches
95+
if: ${{ ! (contains(github.head_ref, 'release-') || contains(github.base_ref, 'release-')) }}
96+
run: |
9097
make generate manifests VERSION=main
9198
git diff --exit-code

0 commit comments

Comments
 (0)