-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 862 Bytes
/
Gitee.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
34
35
name: Gitee
on:
push:
branches: main
jobs:
Gitee:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
mkdir ~/.ssh
cat > ~/.ssh/id_rsa <<EOF
${{secrets.GITEE}}
EOF
chmod 700 ~/.ssh/id_rsa
eval $(ssh-agent -s)
ssh-add ~/.ssh/id_rsa
ssh-keyscan gitee.com >> ~/.ssh/known_hosts
ssh -T [email protected]
git config --global user.name ${GITHUB_ACTOR}
git config --global user.email ${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com
REPOURL=stun_bt
REPODIR=$PWD
cd ~
git clone [email protected]:oniicyan/$REPOURL.git
cd $REPOURL
cp $REPODIR/*.* ./
git add .
git commit -m "Update from GitHub Actions" || exit 0
git push