Merge pull request #3522 from nest/dependabot/github_actions/github/c… #622
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: Mirror to JSC | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
sync_to_jsc: | |
runs-on: ubuntu-latest | |
if: ${{ github.repository_owner == 'nest' }} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 | |
with: | |
egress-policy: audit | |
disable-telemetry: true | |
- name: sycnmaster | |
uses: wei/git-sync@55c6b63b4f21607da0e9877ca9b4d11a29fc6d83 | |
with: | |
source_repo: "nest/nest-simulator" | |
source_branch: "master" | |
destination_repo: "https://ghpusher:${{ secrets.JSC_GITLAB_TOKEN }}@gitlab.jsc.fz-juelich.de/nest/nest-simulator.git" | |
destination_branch: "master" | |
- name: synctags | |
uses: wei/git-sync@55c6b63b4f21607da0e9877ca9b4d11a29fc6d83 | |
with: | |
source_repo: "nest/nest-simulator" | |
source_branch: "refs/tags/v*" | |
destination_repo: "https://ghpusher:${{ secrets.JSC_GITLAB_TOKEN }}@gitlab.jsc.fz-juelich.de/nest/nest-simulator.git" | |
destination_branch: "refs/tags/v*" |