diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml index 14631161..548b95d1 100644 --- a/.github/workflows/master.yaml +++ b/.github/workflows/master.yaml @@ -17,7 +17,7 @@ }, { "name": "Gazelle", - "run": "rm $(find . -name '*.pb.go' | sed -e 's/[^/]*$/BUILD.bazel/') && bazel run //:gazelle" + "run": "rm -f $(find . -name '*.pb.go' | sed -e 's/[^/]*$/BUILD.bazel/') && bazel run //:gazelle" }, { "name": "Buildifier", diff --git a/.github/workflows/pull-requests.yaml b/.github/workflows/pull-requests.yaml index 7831eae4..f33559b5 100644 --- a/.github/workflows/pull-requests.yaml +++ b/.github/workflows/pull-requests.yaml @@ -17,7 +17,7 @@ }, { "name": "Gazelle", - "run": "rm $(find . -name '*.pb.go' | sed -e 's/[^/]*$/BUILD.bazel/') && bazel run //:gazelle" + "run": "rm -f $(find . -name '*.pb.go' | sed -e 's/[^/]*$/BUILD.bazel/') && bazel run //:gazelle" }, { "name": "Buildifier", diff --git a/tools/github_workflows/workflows_template.libsonnet b/tools/github_workflows/workflows_template.libsonnet index 14dafe26..cc7404bd 100644 --- a/tools/github_workflows/workflows_template.libsonnet +++ b/tools/github_workflows/workflows_template.libsonnet @@ -74,7 +74,7 @@ }, { name: 'Gazelle', - run: "rm $(find . -name '*.pb.go' | sed -e 's/[^/]*$/BUILD.bazel/') && bazel run //:gazelle", + run: "rm -f $(find . -name '*.pb.go' | sed -e 's/[^/]*$/BUILD.bazel/') && bazel run //:gazelle", }, { name: 'Buildifier',