diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml index 5619087..2c2fd25 100644 --- a/.github/workflows/master.yaml +++ b/.github/workflows/master.yaml @@ -23,10 +23,6 @@ "name": "Gazelle", "run": "bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro go_dependencies.bzl%go_dependencies -prune && bazel run //:gazelle" }, - { - "name": "Buildifier", - "run": "sed '/^$/d' go_dependencies.bzl > go_dependencies.bzl.new && mv go_dependencies.bzl.new go_dependencies.bzl && bazel run @com_github_bazelbuild_buildtools//:buildifier" - }, { "name": "Gofmt", "run": "bazel run @cc_mvdan_gofumpt//:gofumpt -- -lang 1.19 -w -extra $(pwd)" @@ -94,6 +90,10 @@ { "name": "windows_amd64: build and test", "run": "bazel build --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64 //..." + }, + { + "name": "Buildifier", + "run": "sed '/^$/d' go_dependencies.bzl > go_dependencies.bzl.new && mv go_dependencies.bzl.new go_dependencies.bzl && bazel run @com_github_bazelbuild_buildtools//:buildifier" } ] } diff --git a/.github/workflows/pull-requests.yaml b/.github/workflows/pull-requests.yaml index 1d265bd..6b34577 100644 --- a/.github/workflows/pull-requests.yaml +++ b/.github/workflows/pull-requests.yaml @@ -23,10 +23,6 @@ "name": "Gazelle", "run": "bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro go_dependencies.bzl%go_dependencies -prune && bazel run //:gazelle" }, - { - "name": "Buildifier", - "run": "sed '/^$/d' go_dependencies.bzl > go_dependencies.bzl.new && mv go_dependencies.bzl.new go_dependencies.bzl && bazel run @com_github_bazelbuild_buildtools//:buildifier" - }, { "name": "Gofmt", "run": "bazel run @cc_mvdan_gofumpt//:gofumpt -- -lang 1.19 -w -extra $(pwd)" @@ -94,6 +90,10 @@ { "name": "windows_amd64: build and test", "run": "bazel build --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64 //..." + }, + { + "name": "Buildifier", + "run": "sed '/^$/d' go_dependencies.bzl > go_dependencies.bzl.new && mv go_dependencies.bzl.new go_dependencies.bzl && bazel run @com_github_bazelbuild_buildtools//:buildifier" } ] } diff --git a/tools/github_workflows/workflows_template.libsonnet b/tools/github_workflows/workflows_template.libsonnet index 5fb1d97..130e32b 100644 --- a/tools/github_workflows/workflows_template.libsonnet +++ b/tools/github_workflows/workflows_template.libsonnet @@ -83,10 +83,6 @@ name: 'Gazelle', run: 'bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro go_dependencies.bzl%go_dependencies -prune && bazel run //:gazelle', }, - { - name: 'Buildifier', - run: "sed '/^$/d' go_dependencies.bzl > go_dependencies.bzl.new && mv go_dependencies.bzl.new go_dependencies.bzl && bazel run @com_github_bazelbuild_buildtools//:buildifier", - }, { name: 'Gofmt', run: 'bazel run @cc_mvdan_gofumpt//:gofumpt -- -lang 1.19 -w -extra $(pwd)', @@ -132,7 +128,12 @@ ]), }] for platform in platforms - ]), + ]) + [ + { + name: 'Buildifier', + run: "sed '/^$/d' go_dependencies.bzl > go_dependencies.bzl.new && mv go_dependencies.bzl.new go_dependencies.bzl && bazel run @com_github_bazelbuild_buildtools//:buildifier", + }, + ], }, },