Skip to content

Commit f28e097

Browse files
committed
CI: Move env-var file_name to ref_name.
1 parent 5560f1b commit f28e097

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎.github/workflows/build.yaml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ jobs:
3333
yes | sdk/cmdline-tools/bin/sdkmanager --sdk_root=`pwd`/sdk --licenses
3434
./gradlew assembleRelease
3535
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
36-
file_name="pr-${{ github.event.pull_request.number }}"
36+
ref_name="pr-${{ github.event.pull_request.number }}"
3737
else
38-
file_name="${{ github.ref_name }}"
38+
ref_name="${{ github.ref_name }}"
3939
fi
40-
echo "file_name=${file_name}" >> $GITHUB_ENV
41-
cp app/build/outputs/apk/release/hev.sockstun-*-release.apk hev.sockstun-${file_name}-release.apk
40+
echo "ref_name=${ref_name}" >> $GITHUB_ENV
41+
cp app/build/outputs/apk/release/hev.sockstun-*-release.apk hev.sockstun-${ref_name}-release.apk
4242
- name: Upload
4343
uses: actions/upload-artifact@v4
4444
with:
45-
name: hev.sockstun-${{ env.file_name }}-release.apk
46-
path: hev.sockstun-${{ env.file_name }}-release.apk
45+
name: hev.sockstun-${{ env.ref_name }}-release.apk
46+
path: hev.sockstun-${{ env.ref_name }}-release.apk
4747
if-no-files-found: error
4848
retention-days: 1
4949

0 commit comments

Comments
 (0)