-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (30 loc) · 951 Bytes
/
mirror.yml
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
# Mirroring OW owp4v1copy repository to SourceForge
#
# set secrets OWSFTOKEN1 - SSH user name
# OWSFTOKEN2 - SSH password
name: Mirror
on: [push]
jobs:
build:
name: Mirror to SourceForge
runs-on: ubuntu-latest
steps:
- name: OW Repo clone
uses: actions/checkout@v1
- name: Checkout master branch
run: git checkout master
- name: Prepare askpass script
run: |
echo "echo \"\$SSH_PASSWORD\"" > $HOME/askpass.sh
chmod +x $HOME/askpass.sh
- name: Mirror to SourceForge
run: |
export SSH_ASKPASS=$HOME/askpass.sh
mkdir $HOME/.ssh
ssh-keyscan git.code.sf.net > $HOME/.ssh/known_hosts
git push --force ssh://[email protected]/p/openwatcom/owp4v1copy
env:
OWSFUSER: ${{ secrets.OWSFTOKEN1 }}
SSH_PASSWORD: ${{ secrets.OWSFTOKEN2 }}
DISPLAY: :0
GIT_SSH_COMMAND: "setsid ssh"