From 46128a853a6e728ccf071d5fd3df35afa008f1c7 Mon Sep 17 00:00:00 2001
From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com>
Date: Tue, 31 Oct 2023 17:03:47 +0100
Subject: [PATCH] ci: add goreleaser-check as a require step for the goreleaser
build (backport #2772) (#2775)
This is an automatic backport of pull request #2772 done by
[Mergify](https://mergify.com).
---
Mergify commands and options
More conditions and actions can be found in the
[documentation](https://docs.mergify.com/).
You can also trigger Mergify actions by commenting on this pull request:
- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport ` will backport this PR on
`` branch
Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you
can:
- look at your merge queues
- generate the Mergify configuration with the config editor.
Finally, you can contact us on https://mergify.com
---------
Co-authored-by: Matthew Sevey
Co-authored-by: Rootul Patel
---
.github/workflows/ci-release.yml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml
index 09e330e766..4e5e3db856 100644
--- a/.github/workflows/ci-release.yml
+++ b/.github/workflows/ci-release.yml
@@ -37,10 +37,20 @@ jobs:
test:
uses: ./.github/workflows/test.yml
+ goreleaser-check:
+ runs-on: ubuntu-latest
+ steps:
+ - name: checkout
+ uses: actions/checkout@v4
+ - uses: goreleaser/goreleaser-action@v5
+ with:
+ version: latest
+ args: check
+
# If this was a workflow dispatch event, we need to generate and push a tag
# for goreleaser to grab
version_bump:
- needs: [lint, test]
+ needs: [lint, test, goreleaser-check]
runs-on: ubuntu-latest
permissions: "write-all"
steps: