Skip to content

Commit

Permalink
Merge pull request #3159 from rgaiacs/gesis-mirror
Browse files Browse the repository at this point in the history
Add GitHub Action to push to GESIS
  • Loading branch information
rgaiacs authored Jan 21, 2025
2 parents 3eba1ae + f0eea2a commit 1d3d6b7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/gesis-methods-hub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "GESIS update dispatcher"

on:
push:
branches:
- main

jobs:
update-methods-hub-at-gesis:
if: github.repository == 'jupyterhub/mybinder.org-deploy'
runs-on: ubuntu-latest
steps:
- name: Create remote
run: |
if [ -z "$(git remote | grep methodshub)" ]
then
git remote add methodshub https://git.gesis.org/methods-hub/interactive-environment.git
fi
- name: Update remote
env:
GESIS_METHODS_HUB_TOKEN: ${{ secrets.GESIS_METHODS_HUB_TOKEN }}
run: |
git remote set-url methodshub https://jupyterhub-mybinder-org-deploy:${GESIS_METHODS_HUB_TOKEN}@git.gesis.org/methods-hub/interactive-environment.git
- name: Push main
run: |
git push methodshub ${GITHUB_SHA}:main
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
update-gesis:
update-orc-at-gesis:
if: github.repository == 'jupyterhub/mybinder.org-deploy'
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 1d3d6b7

Please sign in to comment.