Skip to content

Commit cd79133

Browse files
authored
CLOUD-849 - Fix reviewdog for manifests on release branch (#1562)
1 parent e9ec5cf commit cd79133

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
@@ -79,6 +79,13 @@ jobs:
7979
runs-on: ubuntu-latest
8080
steps:
8181
- uses: actions/checkout@v4
82-
- run: |
82+
- name: check on release branch
83+
if: ${{ contains(github.head_ref, 'release-') || contains(github.base_ref, 'release-') }}
84+
run: |
85+
make generate manifests VERSION="$(grep "Version" version/version.go|grep -oE "[0-9]+\.[0-9]+\.[0-9]+")" IMAGE_TAG_BASE="percona/percona-server-mongodb-operator"
86+
git diff --exit-code
87+
- name: check on non release branches
88+
if: ${{ ! (contains(github.head_ref, 'release-') || contains(github.base_ref, 'release-')) }}
89+
run: |
8390
make generate manifests VERSION=main
8491
git diff --exit-code

0 commit comments

Comments
 (0)