Skip to content

Commit 2e2d456

Browse files
committed
remove token check step
1 parent 558b7db commit 2e2d456

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

action.yml

+4-24
Original file line numberDiff line numberDiff line change
@@ -43,43 +43,23 @@ 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'
7249
env:
7350
NODE_ENV: production
51+
OXYGEN_DEPLOYMENT_TOKEN: inputs.oxygen_deployment_token
7452
run: |
7553
echo "Deploying to Oxygen..."
54+
TOKEN="${{ inputs.oxygen_deployment_token }}"
55+
echo "::add-mask::$TOKEN"
56+
7657
build_command_filtered=$(echo '${{ inputs.build_command }}' | sed 's/HYDROGEN_ASSET_BASE_URL=$OXYGEN_ASSET_BASE_URL //g')
7758
oxygen_command="npm exec --package=@shopify/[email protected] -- oxygen-cli oxygen:deploy \
7859
--path=${{ inputs.path }} \
7960
--assetsFolder=${{ inputs.oxygen_client_dir }} \
8061
--workerFolder=${{ inputs.oxygen_worker_dir }} \
8162
--verificationMaxDuration=${{ inputs.oxygen_deployment_verification_max_duration }} \
82-
--token=${{ steps.check_version.outputs.token }}"
8363
if [ "${{ inputs.oxygen_deployment_verification }}" == "false" ]; then
8464
oxygen_command+=" --skipVerification"
8565
fi

0 commit comments

Comments
 (0)