diff --git a/.github/workflows/build_dependabot_bundler_pr.yml b/.github/workflows/build_dependabot_bundler_pr.yml index e40110faf..4757b33bf 100644 --- a/.github/workflows/build_dependabot_bundler_pr.yml +++ b/.github/workflows/build_dependabot_bundler_pr.yml @@ -35,7 +35,7 @@ jobs: - name: Commit and copy changes run: | - if [[ $(git status | grep -E '(go.mod|go.sum)' ]]; then + if [[ $(git status | grep -E '(go.mod|go.sum)') ]]; then git add go.mod go.sum pkg/apis/go.mod pkg/apis/go.sum git commit -m "[dependabot skip] Update Golang Modules" git format-patch -n HEAD^ --binary --stdout > ./dependabot-pr/changes.patch