Skip to content

Commit

Permalink
Merge pull request #953 from TNG/fix/gh-pages-alignment
Browse files Browse the repository at this point in the history
Checkout actions fetches whole repository
  • Loading branch information
l-1squared authored Sep 19, 2022
2 parents f8296d1 + 2b0f868 commit b4ce4ab
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/jgiven_align_gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: get all git data
run: git fetch
- name: Checkout gh-pages
run: git checkout -f gh-pages
with:
fetch-depth: '0' #fetch all history
ref: 'gh-pages'
- name: Configure git user
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Rebase on master
run: git rebase origin/master
- name: Replace version on origin
run: git push --force-with-lease
run: git push --force-with-lease

0 comments on commit b4ce4ab

Please sign in to comment.