-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (30 loc) · 904 Bytes
/
mirror-dev.yml
File metadata and controls
36 lines (30 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Mirror dev to GitLab
on:
workflow_dispatch:
push:
branches:
- dev
jobs:
mirror:
if: github.repository == 'accessibility-exchange/platform'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
ref: dev
fetch-depth: 0
- name: Set up Git
run: |
git config --global user.name "${{ vars.GIT_USER }}"
git config --global user.email "${{ vars.GIT_EMAIL }}"
git remote add gitlab ${{ vars.GITLAB_URL }}
- name: Setup SSH
uses: webfactory/ssh-agent@v0.9.1
with:
ssh-private-key: ${{ secrets.GITLAB_SSH_KEY }}
- name: Push to GitLab
run: |
ssh-keyscan git.kube.v1.colab.coop >> ~/.ssh/known_hosts
git pull gitlab development --no-rebase --no-edit
git push gitlab dev:development