Moving update repository in separate action
This commit is contained in:
parent
cab962caa5
commit
82dc4dbb73
26
.github/workflows/update-repository.yml
vendored
Normal file
26
.github/workflows/update-repository.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: Update package repository
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_run:
|
||||
workflows: ["Build kernel packages"]
|
||||
types:
|
||||
- completed
|
||||
jobs:
|
||||
|
||||
repository:
|
||||
name: Update package repository
|
||||
runs-on: [self-hosted, Linux, local]
|
||||
if: ${{ github.repository_owner == 'Armbian' }}
|
||||
steps:
|
||||
|
||||
- name: Install SSH key for repository
|
||||
uses: shimataro/ssh-key-action@v2
|
||||
with:
|
||||
key: ${{ secrets.KEY_REPOSITORY }}
|
||||
name: id_repository # optional
|
||||
known_hosts: ${{ secrets.KNOWN_HOSTS_REPOSITORY }}
|
||||
if_key_exists: replace
|
||||
|
||||
- name: Update repository
|
||||
run: ssh -T -i ~/.ssh/id_repository ${{ secrets.USER_REPOSITORY }}@${{ secrets.HOST_REPOSITORY }}
|
||||
Loading…
Reference in New Issue
Block a user