From 4bb983e4af53baf2a7a5aa39f15b5389906a4c71 Mon Sep 17 00:00:00 2001 From: Nikita Kiselev Date: Thu, 10 Jul 2025 20:58:03 +0300 Subject: [PATCH] fix: change hardcoded axios url --- .github/workflows/main.yaml | 9 +++++++++ spa/src/components/ProductList.vue | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index d57fab1..45c9470 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -67,6 +67,15 @@ jobs: - name: Rename artifact file run: mv ./build/oc_telegram_shop.ocmod.zip ./build/${{ steps.meta.outputs.filename }} + - name: Delete existing GitHub release and tag + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + TAG=${{ steps.meta.outputs.tag }} + echo "⛔ Deleting existing release and tag (if any): $TAG" + gh release delete "$TAG" --cleanup-tag --yes || true + git push origin ":refs/tags/$TAG" || true + - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: diff --git a/spa/src/components/ProductList.vue b/spa/src/components/ProductList.vue index c02f5e5..145daeb 100644 --- a/spa/src/components/ProductList.vue +++ b/spa/src/components/ProductList.vue @@ -22,7 +22,7 @@ import {onMounted, ref} from "vue"; const products = ref([]); onMounted(async () => { - const {data} = await $fetch('http://localhost:8000/index.php?route=tgshop/handle&api_action=products'); + const {data} = await $fetch('https://ocstore.nikitakiselev.ru/index.php?route=extension/tgshop/handle&api_action=products'); products.value = data; }); \ No newline at end of file