From daaff4200aa2a78da8e91b918ce7a6b4929eaa2e Mon Sep 17 00:00:00 2001 From: Ramin Gharib Date: Mon, 28 Aug 2023 11:12:54 +0200 Subject: [PATCH] Fix GitHub ref variable for pushing docs to main branch --- .github/workflows/ci.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 765ae12b1..baa091133 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -86,12 +86,10 @@ jobs: publish-docs-from-main: runs-on: ubuntu-22.04 - if: ${{ github.head_ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' }} needs: [test] steps: - uses: actions/checkout@v3 - with: - ref: ${{ github.head_ref }} - name: Publish docs from main branch uses: ./.github/actions/update-docs