1 parent e42e973 commit 1c620d0Copy full SHA for 1c620d0
1 file changed
ocis-test/action.yml
@@ -142,9 +142,13 @@ runs:
142
"${OCIS_URL}/app/open?app_name=FakeOffice&file_id=${FILE_ID_ENC}")
143
echo "open: ${OPEN:0:400}"
144
145
- ACCESS_TOKEN=$(echo "$OPEN" | jq -r '.form_parameters.access_token')
146
- TTL=$(echo "$OPEN" | jq -r '.form_parameters.access_token_ttl')
147
- APP_URL=$(echo "$OPEN" | jq -r '.app_url // ""')
+ read -r ACCESS_TOKEN TTL APP_URL < <(
+ echo "$OPEN" | jq -r '[
+ .form_parameters.access_token,
148
+ (.form_parameters.access_token_ttl | if type == "number" then tostring else "0" end),
149
+ (.app_url // "")
150
+ ] | @tsv'
151
+ )
152
153
# Extract encoded file ID from app_url, fall back to re-encoding FILE_ID
154
if echo "$APP_URL" | grep -q 'files%2F'; then
0 commit comments