[pre-commit.ci] pre-commit autoupdate (#27) #13
This file contains hidden or 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
name: Refresh pages | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
refresh: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Reset gh-pages to latest main | |
run: | | |
git fetch origin | |
git checkout gh-pages | |
git reset --hard origin/main | |
git push origin gh-pages --force |