Skip to content

Commit 46cdd72

Browse files
committed
remove token check step
1 parent 558b7db commit 46cdd72

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

action.yml

+1-24
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,6 @@ outputs:
4343
runs:
4444
using: 'composite'
4545
steps:
46-
- name: Check Oxygen version
47-
shell: 'bash'
48-
id: check_version
49-
run: |
50-
TOKEN="${{ inputs.oxygen_deployment_token }}"
51-
echo "::add-mask::$TOKEN"
52-
53-
if [[ "${TOKEN}" == *":"* ]]; then
54-
echo "Multi token"
55-
IFS=':' read -ra token_list <<< "${TOKEN}"
56-
token=${token_list[1]}
57-
echo "::add-mask::$token"
58-
echo "token=$token" >> $GITHUB_OUTPUT
59-
else
60-
if [[ "${TOKEN}" =~ ^[A-Za-z0-9+/]+[=]{0,2}$ ]]; then
61-
echo "Token is in V2 format"
62-
echo "token=${TOKEN}" >> $GITHUB_OUTPUT
63-
else
64-
echo "Your repository is out of date, please disconnect and reconnect your storefront on Shopify"
65-
exit 1
66-
fi
67-
fi
68-
6946
- name: Build and Publish to Oxygen
7047
shell: 'bash'
7148
id: 'oxygen-cli-action'
@@ -79,7 +56,7 @@ runs:
7956
--assetsFolder=${{ inputs.oxygen_client_dir }} \
8057
--workerFolder=${{ inputs.oxygen_worker_dir }} \
8158
--verificationMaxDuration=${{ inputs.oxygen_deployment_verification_max_duration }} \
82-
--token=${{ steps.check_version.outputs.token }}"
59+
--token=${{ inputs.oxygen_deployment_token}}"
8360
if [ "${{ inputs.oxygen_deployment_verification }}" == "false" ]; then
8461
oxygen_command+=" --skipVerification"
8562
fi

0 commit comments

Comments
 (0)