From 5bd5c591be27c52f67303dd8b87ab6dbe5a75bf0 Mon Sep 17 00:00:00 2001 From: Will Rouesnel Date: Sun, 11 Nov 2018 21:03:41 +1100 Subject: [PATCH] Debug metric push. --- gh-metrics-push.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gh-metrics-push.sh b/gh-metrics-push.sh index ae5eb58f..32dbbe1e 100755 --- a/gh-metrics-push.sh +++ b/gh-metrics-push.sh @@ -14,7 +14,9 @@ METRICS_DIR="$ASSETS_DIR/metriclists" mkdir -p "$METRICS_DIR/" # Remove old files so we spot deletions -rm -f "$METRICS_DIR/*.unique" +rm -f "$METRICS_DIR/.*.unique" + +ls -la # Copy new files cp -f -t "$METRICS_DIR/" ./.metrics.*.prom.unique || exit 1 @@ -22,6 +24,8 @@ cp -f -t "$METRICS_DIR/" ./.metrics.*.prom.unique || exit 1 # Enter the assets dir and push. cd "$ASSETS_DIR" || exit 1 +ls -laR + git add "$METRICS_DIR" || exit 1 git commit -m "Added unique metrics for build from $version" || exit 1 git push origin "$GIT_ASSETS_BRANCH" || exit 1