Skip to content

Merge pull request #325 from NeurodataWithoutBorders/move-ndrh2024-to… #128

Merge pull request #325 from NeurodataWithoutBorders/move-ndrh2024-to…

Merge pull request #325 from NeurodataWithoutBorders/move-ndrh2024-to… #128

name: Keep gh-pages up-to-date with main
on:
push:
branches:
- main
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: main
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository
- name: Update gh-pages branch to current main
run: |
git remote set-url origin https://${{ secrets.USERNAME_GITHUB }}:${{ secrets.API_TOKEN_GITHUB }}@github.com/neurodatawithoutborders/nwb_hackathons.git
git push origin -d gh-pages
git checkout -b gh-pages
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.API_TOKEN_GITHUB }}
branch: gh-pages
force: true