diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c11b758..b23fd88 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,7 +56,7 @@ jobs: VERSION_OUTPUT=$(./metricshub --version) echo "$VERSION_OUTPUT" # Extract the version number using grep and regex - AGENT_VERSION=$(echo "$VERSION_OUTPUT" | grep -oP '(?<=MetricsHub Agent version )[\d.-]+') + AGENT_VERSION=$(echo "$VERSION_OUTPUT" | grep -oP '(?<=MetricsHub Agent version )[\d.-]+-SNAPSHOT') echo "MetricsHub Agent version: $AGENT_VERSION" echo "::set-output name=agent_version::$AGENT_VERSION" shell: bash