From 722c3620a45dcdc05f5f48425e7a2736548364ec Mon Sep 17 00:00:00 2001 From: jgromes Date: Wed, 1 Jan 2025 12:59:29 +0100 Subject: [PATCH] Use GITHUB_SHA variable --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 37d5dac1..7b4c6e18 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -207,7 +207,6 @@ jobs: - name: Clone artifact repo run: | - echo "GIT_SHORT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV cd $PWD/.. git clone https://${{ github.actor }}:${{ secrets.ACTIONS_METRICS_PUSH_TOKEN }}@github.com/radiolib-org/artifacts.git cd artifacts @@ -227,7 +226,8 @@ jobs: cp aggregated-sizes/*/size_*.csv $PWD/../artifacts/radiolib-ci/l0/. cd $PWD/../artifacts/radiolib-ci git add . - git commit -m "Push artifacts https://github.com/jgromes/RadioLib/commit/$GIT_SHORT_HASH" + COMMIT_URL="https://github.com/jgromes/RadioLib/commit/$GITHUB_SHA" + git commit -m "Push artifacts from [${GITHUB_SHA:0:8}]($COMMIT_URL)" git push origin main esp-build: