Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gha cliversion ok #22

Open
wants to merge 1 commit into
base: all-your-base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/scripts/main/hygiene.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,16 @@ cd ..
# Default cli version check
###

if [ "$GITHUB_EVENT_NAME" = "push" ] && [ "$BRANCH" = "master" ]; then
(set +x ; echo -en "::group::check default cli\r") 2>/dev/null
CURRENT_MAJOR="`sed -n "s/^AC_INIT(opam,\([0-9]\+\)[^0-9]*.*)$/\1/p" configure.ac`"
DEFAULT_CLI_MAJOR="`sed -n "/let *default *=/s/.*(\([0-9]*\)[^0-9]*.*/\1/p" src/client/opamCLIVersion.ml`"
if [ $CURRENT_MAJOR -eq $DEFAULT_CLI_MAJOR ]; then
echo "Major viersion is default cli one: $CURRENT_MAJOR"
echo "Major version is default cli one: $CURRENT_MAJOR"
else
echo -e "[\e[31mERROR\e[0m] Major version $CURRENT_MAJOR and default cli version $DEFAULT_CLI_MAJOR mismatches"
(set +x ; echo -en "::endgroup::check default cli\r") 2>/dev/null
ERROR=1
fi
fi

###
# Workflow YAML files up-to-date
Expand Down
Loading