fix artifact path

OmarHatem committed Nov 29, 2022 at 14:19 UTC b62e4cb0648a0014b5fbd339f52c06d03cae1ea8
1 file changed +2 -8
.github/workflows/pr_test_build.yml
+2 -8
@@ -111,15 +111,9 @@ jobs:
111 # - name: Send Test APK
112 # run: |
113 # cd /opt/android/cake_wallet
114 -# var=$(curl --upload-file build/app/outputs/apk/release/app-release.apk https://transfer.sh/app-release.apk)
114 +# var=$(curl --upload-file build/app/outputs/apk/release/app-release.apk https://transfer.sh/$GITHUB_HEAD_REF.apk)
115 # curl ${{ secrets.SLACK_WEB_HOOK }} -H "Content-Type: application/json" -d '{"apk_link": "'"$var"'","ticket": "'"$GITHUB_HEAD_REF"'"}'
116
117 -
118 - - name: Send Test APK
119 - run: |
120 - var=$(curl --upload-file pubspec_base.yaml https://transfer.sh/$GITHUB_HEAD_REF.apk)
121 - curl ${{ secrets.SLACK_WEB_HOOK }} -H "Content-Type: application/json" -d '{"apk_link": "'"$var"'","ticket": "'"$GITHUB_HEAD_REF"'"}'
122 -
117 - name: Rename apk
118 run: |
119 mv pubspec_base.yaml $GITHUB_HEAD_REF.apk
@@ -129,5 +123,5 @@ jobs:
123 uses: actions/upload-artifact@v3
124 with:
125 name: test-apks-artifacts
132 - path: $GITHUB_HEAD_REF.apk
126 + path: "\${{GITHUB_HEAD_REF}}.apk"
127