Skip to content

Commit 8bc5795

Browse files
committed
Gitlab autopush: use script from ci-support
1 parent 8aa0766 commit 8bc5795

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/autopush.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ on:
77
jobs:
88
autopush:
99
name: Automatic push to gitlab.tiker.net
10+
if: startsWith(github.repository, 'inducer/')
1011
runs-on: ubuntu-latest
1112
steps:
12-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1314
- run: |
14-
mkdir ~/.ssh && echo -e "Host gitlab.tiker.net\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
15-
eval $(ssh-agent) && echo "$GITLAB_AUTOPUSH_KEY" | ssh-add -
16-
git fetch --unshallow
17-
git push "[email protected]:inducer/$(basename $GITHUB_REPOSITORY).git" main
15+
curl -L -O https://tiker.net/ci-support-v0
16+
. ./ci-support-v0
17+
mirror_github_to_gitlab
18+
1819
env:
1920
GITLAB_AUTOPUSH_KEY: ${{ secrets.GITLAB_AUTOPUSH_KEY }}
2021

0 commit comments

Comments
 (0)