From 33fe70e29663b7258d7ec30ef6daddf2c6f4b02c Mon Sep 17 00:00:00 2001 From: Zahar Vanilovv <65060241+vanilovv@users.noreply.github.com> Date: Tue, 22 Jul 2025 23:37:03 +0300 Subject: [PATCH] fix workflow --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6536a07..57fa5d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,7 +92,6 @@ jobs: parse: runs-on: ubuntu-latest - # Run on schedule, manual dispatch, push to main, or merged PR if: | github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || @@ -100,6 +99,11 @@ jobs: (github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true) needs: update steps: + - name: Debug event and branch + run: | + echo "Event name: ${{ github.event_name }}" + echo "Branch name: ${{ env.BRANCH_NAME }}" + echo "Ref to checkout: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && env.BRANCH_NAME || 'main' }}" - name: Configure Git for github-actions[bot] run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" @@ -110,6 +114,11 @@ jobs: with: fetch-depth: ${{ env.GIT_DEPTH }} ref: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' && env.BRANCH_NAME || 'main' }} + - name: Debug Git state + run: | + echo "Current branch: $(git rev-parse --abbrev-ref HEAD)" + git branch --list + git tag --list - name: Set up Python 3.9 uses: actions/setup-python@v5 with: @@ -249,4 +258,4 @@ jobs: fi done - echo "Files sent to Telegram successfully!" \ No newline at end of file + echo "Files sent to Telegram successfully!"