From a91f2ea1e9b62ce75a3bdd7afdd0aa6e38d5655d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= Date: Wed, 30 Oct 2024 23:44:34 +0000 Subject: [PATCH] ci: Try to debug the release workflow (#83) The release workflow ran and built the wheels, but for some reason the `publish` step got skipped -.-' https://github.com/zxcalc/quizx/actions/runs/11603200919/job/32310138857 This PR simplifies the `if` condition and adds debug info. --- .github/workflows/wheels.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 87ff6ee..222efb4 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -31,9 +31,16 @@ jobs: - name: Check tag id: check-tag run: | + echo "Should run on this event: $SHOULD_RUN" + echo "Making release: $MAKING_RELEASE" + echo "Event name: ${{ github.event_name }}" + echo "Ref type: ${{ github.ref_type }}" + echo "Ref: ${{ github.ref }}" + echo "run=$SHOULD_RUN" >> $GITHUB_OUTPUT env: SHOULD_RUN: ${{ github.event_name != 'release' || ( github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') ) }} + MAKING_RELEASE: ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') && (github.event_name == 'release' || github.event_name == 'workflow_dispatch' ) }} linux: needs: check-tag @@ -184,7 +191,7 @@ jobs: release: name: Release runs-on: ubuntu-latest - if: ${{ (github.event_name == 'release' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') ) || (github.event_name == 'workflow_dispatch' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') ) }} + if: ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') && (github.event_name == 'release' || github.event_name == 'workflow_dispatch' ) }} needs: [linux, musllinux, windows, macos, sdist] steps: - uses: actions/download-artifact@v4