mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-05 14:57:49 +00:00
.github/workflows: skip net/dnsfallback go generate check on release branch
We don't want to force ourselves to update the DERP list every time we want to cut a new release. Having an outdated DERP list on release branches is OK. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
parent
4bbf5a8636
commit
9faee90744
9
.github/workflows/go_generate.yml
vendored
9
.github/workflows/go_generate.yml
vendored
@ -28,7 +28,14 @@ jobs:
|
||||
run: |
|
||||
mkdir gentools
|
||||
go build -o gentools/stringer golang.org/x/tools/cmd/stringer
|
||||
PATH="$PATH:$(pwd)/gentools" go generate ./...
|
||||
if [[ "${{github.ref}}" == release-branch/* ]]
|
||||
then
|
||||
pkgs=$(go list ./... | grep -v dnsfallback)
|
||||
else
|
||||
pkgs=$(go list ./...)
|
||||
fi
|
||||
echo pkgs: $pkgs
|
||||
PATH="$PATH:$(pwd)/gentools" go generate $pkgs
|
||||
echo
|
||||
echo
|
||||
git diff --name-only --exit-code || (echo "The files above need updating. Please run 'go generate'."; exit 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user