Skip to content

Commit

Permalink
Fix GitHub ref variable for pushing docs to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
raminqaf committed Aug 28, 2023
1 parent cd58390 commit daaff42
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit daaff42

Please sign in to comment.