Skip to content

Commit

Permalink
ci: fix update-tf-docs script
Browse files Browse the repository at this point in the history
Signed-off-by: Khosrow <[email protected]>
  • Loading branch information
khos2ow committed Sep 18, 2024
1 parent b23f214 commit c0fb441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/update-tfdocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ set -o pipefail

CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)

if [ -z "${CURRENT_BRANCH}" ] || [ "${CURRENT_BRANCH}" != "master" ]; then
echo "Error: The current branch is '${CURRENT_BRANCH}', switch to 'master' to do the release."
if [ -z "${CURRENT_BRANCH}" ] || [ "${CURRENT_BRANCH}" != "main" ]; then
echo "Error: The current branch is '${CURRENT_BRANCH}', switch to 'main' to do the release."
exit 1
fi

Expand Down

0 comments on commit c0fb441

Please sign in to comment.