Skip to content

Commit fafd3b6

Browse files
committed
fix: undo hack
1 parent d86ef94 commit fafd3b6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/deploy-staging.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ jobs:
9898
--contract "${{ env.NEAR_CONTRACT_PR_STAGING_ACCOUNT_ID }}" \
9999
--network "${{ vars.NEAR_CONTRACT_STAGING_NETWORK }}")
100100
101-
if [[ -n "$CONTRACT_EXISTS" ]]; then
101+
if [[ -z "$CONTRACT_EXISTS" ]]; then
102102
echo "Contract already exists on staging account, removing old market versions"
103-
# ./script/ci/remove-all-versions-from-registry.sh \
104-
# --account "${{ env.NEAR_CONTRACT_PR_STAGING_ACCOUNT_ID }}" \
105-
# --registry "${{ env.NEAR_CONTRACT_PR_STAGING_ACCOUNT_ID }}" \
106-
# --network "${{ vars.NEAR_CONTRACT_STAGING_NETWORK }}" \
107-
# --private-key "${{ secrets.NEAR_CONTRACT_STAGING_ACCOUNT_PRIVATE_KEY }}"
103+
./script/ci/remove-all-versions-from-registry.sh \
104+
--account "${{ env.NEAR_CONTRACT_PR_STAGING_ACCOUNT_ID }}" \
105+
--registry "${{ env.NEAR_CONTRACT_PR_STAGING_ACCOUNT_ID }}" \
106+
--network "${{ vars.NEAR_CONTRACT_STAGING_NETWORK }}" \
107+
--private-key "${{ secrets.NEAR_CONTRACT_STAGING_ACCOUNT_PRIVATE_KEY }}"
108108
else
109109
echo "NEWLY_CREATED=1" >> $GITHUB_ENV
110110
fi

0 commit comments

Comments
 (0)