From 46661004fc2da5744234db3aecbc8f593dd1354c Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Thu, 11 Apr 2024 20:57:11 -0300 Subject: [PATCH] Use short sha in nightly filename, remove disallowed parentheses (#4272) --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1cb9686aff..7a6d258617 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,11 +125,12 @@ jobs: needs: build-debug-apk permissions: contents: write - env: - APK_NAME: Lawnchair.Debug.${{ github.ref_name }}.Nightly-${{ github.sha }}-(CI_${{ github.run_number }}).apk steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 + # Note the # and () symbols are not supported in GitHub Release filenames, even manually + - name: Export APK_NAME for later use + run: echo "APK_NAME=Lawnchair.Debug.${{ github.ref_name }}.Nightly-$(echo ${{ github.sha }} | cut -c1-7)-CI_${{ github.run_number }}.apk" >> $GITHUB_ENV - name: Rename .apk file run: mv "./Debug APK/lawnWithQuickstepGithub/debug/"*.apk "./$APK_NAME" - name: Delete release if exist then create release