-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #953 from TNG/fix/gh-pages-alignment
Checkout actions fetches whole repository
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |