From 0e0e56882fd9634270d190d2deeb4db40e534008 Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Wed, 2 Nov 2022 16:03:03 -0700 Subject: [PATCH] Don't assume `git pull` fetches all branches/tags While running a release, at this point in the instructions I was on the `v1.3.5-release-notes` branch. So `git pull` isn't guaranteed to pull updates on `main` etc. Since we're going to checkout the release tag, a `fetch` is all we need here. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index abbac1b..0119047 100644 --- a/README.md +++ b/README.md @@ -200,7 +200,7 @@ jobs: - Get the PR reviewed, merge it and publish the release - Update the `v1` tracking tag to point to the new version ```bash - git pull + git fetch --all --tags git checkout v1.x.x # Check out the release tag git tag -f v1 # Force update the tracking tag git push -f --tags