From 00e8c691f8791cdd2c4e8edbf336bedadfab8614 Mon Sep 17 00:00:00 2001 From: Antonis Markoulis Date: Tue, 27 Aug 2024 17:09:08 +0300 Subject: [PATCH] ci: properly use version during setup of python --- .github/workflows/docs.yml | 4 ++-- .github/workflows/release.yml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e9e58e8..926e5ca 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -31,5 +31,5 @@ jobs: name: documentation path: docs/_build/html - name: Upload to read the docs - if: ${{ github.event.inputs.upload_docs }} - run: curl -X POST -d "branches=master" -d "token=${{ secrets.RTDS_WEBHOOK_TOKEN }}" ${{ secrets.RTDS_WEBHOOK_URL }} + if: ${{ inputs.upload_docs == 'true' || inputs.upload_docs == true }} + run: curl -X POST -d "branches=main" -d "token=${{ secrets.RTDS_WEBHOOK_TOKEN }}" ${{ secrets.RTDS_WEBHOOK_URL }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5fd5bcd..5b0a62e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,8 @@ jobs: steps: - name: Setup Python uses: actions/setup-python@v5 + with: + python-version: "3.10" - name: Checkout Repository uses: actions/checkout@v4 with: