Use short sha in nightly filename, remove disallowed parentheses (#4272)

This commit is contained in:
Chris Renshaw
2024-04-11 20:57:11 -03:00
committed by GitHub
parent e74bb25322
commit 46661004fc

View File

@@ -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