Skip to content

Commit b9b7ec1

Browse files
committed
Add GitHub Action to push to GESIS
1 parent 9f9b752 commit b9b7ec1

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "GESIS update dispatcher"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
update-methods-hub-at-gesis:
10+
if: github.repository == 'jupyterhub/mybinder.org-deploy'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Create remote
14+
run: |
15+
if [ -z "$(git remote | grep methodshub)" ]
16+
then
17+
git remote add methodshub https://git.gesis.org/methods-hub/interactive-environment.git
18+
fi
19+
- name: Update remote
20+
env:
21+
GESIS_METHODS_HUB_TOKEN: ${{ secrets.GESIS_METHODS_HUB_TOKEN }}
22+
run: |
23+
git remote set-url methodshub https://jupyterhub-mybinder-org-deploy:${GESIS_METHODS_HUB_TOKEN}@git.gesis.org/methods-hub/interactive-environment.git
24+
- name: Push main
25+
run: |
26+
git push methodshub ${GITHUB_SHA}:main

.github/workflows/gesis.yaml .github/workflows/gesis-orc.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
jobs:
9-
update-gesis:
9+
update-orc-at-gesis:
1010
if: github.repository == 'jupyterhub/mybinder.org-deploy'
1111
runs-on: ubuntu-latest
1212
steps:
@@ -17,4 +17,4 @@ jobs:
1717
curl -X POST \
1818
-F token=${GESIS_TOKEN} \
1919
-F ref=main \
20-
https://git.gesis.org/api/v4/projects/ilcm%2Forc2-upgrade-bot/trigger/pipeline
20+
https://git.gesis.org/api/v4/projects/ilcm%2Forc2-upgrade-bot/trigger/pipeline

0 commit comments

Comments
 (0)