Skip to content

Commit ad3d90b

Browse files
zimegClaude
andcommitted
fix: skip release workflow when docs already match next version
The release workflow re-triggers on main when its own PR merges, causing `make rc` to fail with "nothing to commit" since docs are already up to date. Check if the computed NEXT_VERSION already appears in the install docs before proceeding. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
1 parent f0e47ee commit ad3d90b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ jobs:
8484
;;
8585
esac
8686
87+
# Skip if docs already reference this version
88+
if grep -q "Using slack v${NEXT_VERSION}" docs/guides/installing-the-slack-cli-for-mac-and-linux.md; then
89+
echo "Docs already at v$NEXT_VERSION, nothing to release"
90+
echo "has_changes=false" >> "$GITHUB_OUTPUT"
91+
exit 0
92+
fi
93+
8794
echo "has_changes=true" >> "$GITHUB_OUTPUT"
8895
echo "next=$NEXT_VERSION" >> "$GITHUB_OUTPUT"
8996
echo "semver=$SEMVER" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)