Skip to content

Commit 17eefad

Browse files
committed
longer extraction
1 parent 0e004a7 commit 17eefad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,10 @@ runs:
2727
shell: bash
2828

2929
- name: Set environment variables
30-
run: echo "version_info=$(cat extracted_values.txt)" >> $GITHUB_ENV
30+
run: |
31+
ANDROID_VERSION_CODE=$(grep "ANDROID_VERSION_CODE" extracted_values.txt | cut -d '=' -f 2 | tr -d '[:space:]')
32+
ANDROID_VERSION_CODE_STR="$ANDROID_VERSION_CODE"
33+
echo "ANDROID_VERSION_CODE=$ANDROID_VERSION_CODE_STR" >> $GITHUB_ENV
34+
ANDROID_VERSION_NAME=$(grep "ANDROID_VERSION_NAME" extracted_values.txt | cut -d '=' -f 2 | tr -d '[:space:]')
35+
echo "ANDROID_VERSION_NAME=$ANDROID_VERSION_NAME" >> $GITHUB_ENV
3136
shell: bash

0 commit comments

Comments
 (0)