Skip to content

Commit

Permalink
Pull gh-pages before pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
sindrehan committed Sep 22, 2023
1 parent 41d262d commit 9e18658
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ jobs:
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Fetch gh-pages
run: git fetch origin gh-pages --depth=1
- name: Pull gh-pages
run: |
git fetch origin gh-pages --depth=1
git checkout gh-pages
git pull origin gh-pages --depth=1
git checkout -
- name: Set variables
run: |
full_version="v$(cut -d ' ' -f 2 <<< "$(poetry version)")"
Expand Down

0 comments on commit 9e18658

Please sign in to comment.