.gitea/workflows/sync.yaml: clone PKGBUILD mirror over SSH
This commit is contained in:
parent
a9f29fab5e
commit
66ef6af785
|
@ -8,16 +8,25 @@ jobs:
|
|||
sync:
|
||||
if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run sync' || github.event.comment.body == '!actions run all' }}
|
||||
steps:
|
||||
- name: Git Setup
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo 'Host git.nozomi.space ' >> ~/.ssh/config
|
||||
echo ' HostName git.nozomi.space' >> ~/.ssh/config
|
||||
echo ' Port 51423' >> ~/.ssh/config
|
||||
cat ~/.ssh/config
|
||||
ssh-keyscan -p 51423 -H git.nozomi.space >> ~/.ssh/known_hosts
|
||||
cat ~/.ssh/known_hosts
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: linux-neptune-65
|
||||
- name: Checkout jupiter-PKGBUILD mirror
|
||||
uses: sudosubin/git-clone-action@v1.0.1
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'mirrors/jupiter-PKGBUILD'
|
||||
platform: 'git.nozomi.space'
|
||||
path: pkgbuilds
|
||||
ssh-key: ${{ secrets.AUR_SSH_KEY }}
|
||||
- name: Copy package sources
|
||||
run: |
|
||||
rm -rf linux-neptune-65/aur/*
|
||||
|
|
Loading…
Reference in New Issue