Merge pull request #1890 from ResearchHub/journal-now #95
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
name: Mirror Master Branch | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
mirror: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Git | |
run: | | |
git config --global user.email "github-actions[bot]@users.no-reply.github.com" | |
git config --global user.name "github-actions[bot]" | |
- name: Mirror master | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
run: | | |
git fetch origin master | |
git update-ref refs/heads/master-mirror refs/remotes/origin/master | |
git push --force origin master-mirror |