Use GITHUB_SHA variable
This commit is contained in:
parent
8fa5894030
commit
722c3620a4
1 changed files with 2 additions and 2 deletions
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue