From 4dfd11e3fba3c85eb2ed2820ac118f18729cefc5 Mon Sep 17 00:00:00 2001 From: Andrey Kondratev <81143241+cockroach-eater@users.noreply.github.com> Date: Fri, 29 Aug 2025 15:33:33 +0500 Subject: [PATCH] fix? --- .github/workflows/ci.yml | 6 +++++- public/script.ts | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 436aea4..35aa138 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,17 +96,21 @@ jobs: - name: Deploy to server uses: appleboy/ssh-action@v1.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_ACTOR: ${{ github.actor }} with: host: ${{ secrets.HOST }} username: ${{ secrets.USERNAME }} key: ${{ secrets.SSH_KEY }} port: ${{ secrets.PORT }} + envs: GITHUB_TOKEN,GITHUB_ACTOR script: | cd /opt/quixotic git pull origin main # Login to GitHub Container Registry - echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin + echo $GITHUB_TOKEN | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin # Deploy using production compose docker-compose -f docker-compose.yml -f docker-compose.prod.yml pull diff --git a/public/script.ts b/public/script.ts index 239ecbd..2130fda 100644 --- a/public/script.ts +++ b/public/script.ts @@ -212,7 +212,7 @@ class QuixoticApp { public async convertVideo(videoId: string, title: string, url: string): Promise { console.log('🎵 CONVERT VIDEO CALLED:', { videoId, title, url }); console.log('🔧 Telegram WebApp available:', !!this.tg); - const videoElement = (event as any)?.currentTarget as HTMLElement; + const videoElement = document.activeElement as HTMLElement; if (videoElement) { videoElement.classList.add('tg-list-item--converting'); }