Fix git hash in artifact filename
This commit is contained in:
parent
3b1d2d8205
commit
0e3d58ebc2
1 changed files with 7 additions and 3 deletions
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
@ -190,11 +190,15 @@ jobs:
|
|||
cd $PWD/extras/test/ci
|
||||
./parse_size.sh ${{ matrix.id }}
|
||||
|
||||
- name: Extract short commit hash
|
||||
id: short-hash
|
||||
run: echo "::set-output name=short_sha::${GITHUB_SHA:0:8}"
|
||||
|
||||
- name: Upload size report as artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: size-file-${{ matrix.id }}
|
||||
path: extras/test/ci/size_${{ matrix.id }}.csv
|
||||
name: size-file-${{ steps.short-hash.outputs.short_sha }}-${{ matrix.id }}
|
||||
path: extras/test/ci/size_${{ steps.short-hash.outputs.short_sha }}_${{ matrix.id }}.csv
|
||||
|
||||
metrics:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -223,7 +227,7 @@ jobs:
|
|||
cp aggregated-sizes/size_*.csv radiolib-ci/l0/.
|
||||
rm -r aggregated-sizes/size_*.csv
|
||||
git add .
|
||||
git commit -m "Push artifacts from $GITHUB_REPOSITORY"
|
||||
git commit -m "Push artifacts from $GITHUB_REPOSITORY ${{ steps.short-hash.outputs.short_sha }}"
|
||||
git push origin main
|
||||
|
||||
esp-build:
|
||||
|
|
Loading…
Add table
Reference in a new issue