Skip to content

Commit

Permalink
Merge pull request #2978 from vespa-engine/olaa/fix-metric-update
Browse files Browse the repository at this point in the history
Ignore unrelated diffs when updating metric docs
  • Loading branch information
kkraune authored Oct 30, 2023
2 parents a83cb58 + c8ce442 commit ab9d32e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions screwdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ jobs:
grep -oP '<latest>\K([0-9]+\.[0-9]+\.[0-9]+)')
curl -SsLo metrics.jar "https://repo1.maven.org/maven2/com/yahoo/vespa/metrics/\${VESPA_VERSION}/metrics-\${VESPA_VERSION}.jar"
java -cp metrics.jar ai.vespa.metrics.docs.DocumentationGenerator en/reference
git diff
changes=\$(git status --porcelain | wc -l)
git diff en/reference/*-metrics-reference.html
changes=\$(git status --porcelain en/reference/*-metrics-reference.html | wc -l)
if (( changes > 0 )); then
echo "Updating metric reference"
git commit -m "Update metric reference" en/reference/*-metrics-reference.html
Expand Down

0 comments on commit ab9d32e

Please sign in to comment.