Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammedSentry committed Jun 7, 2024
1 parent a3b53ed commit 9e73312
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ jobs:
cd artifacts
tar -xzf metricshub-linux-*.tar.gz
- name: Run MetricsHub and get version
id: get_version
run: |
cd artifacts/metricshub/bin
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.-]+')
echo "MetricsHub Agent version: $AGENT_VERSION"
echo "::set-output name=agent_version::$AGENT_VERSION"
shell: bash
- name: Run MetricsHub and get version
id: get_version
run: |
cd artifacts/metricshub/bin
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.-]+')
echo "MetricsHub Agent version: $AGENT_VERSION"
echo "::set-output name=agent_version::$AGENT_VERSION"
shell: bash

- name: Compare versions
run: |
INPUT_VERSION="${{ github.event.inputs.version }}"
Expand All @@ -72,6 +72,7 @@ jobs:
exit 1
fi
shell: bash


- name: List downloaded files
run: ls -al artifacts
Expand Down

0 comments on commit 9e73312

Please sign in to comment.