Moving update repository in separate action

This commit is contained in:
Igor Pecovnik 2021-10-05 08:06:02 +02:00
parent cab962caa5
commit 82dc4dbb73
No known key found for this signature in database
GPG Key ID: 93D6889F9F0E78D5

26
.github/workflows/update-repository.yml vendored Normal file
View 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 }}