44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
name: Update Repository
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_run:
|
|
workflows: ["Build Beta Desktop"]
|
|
types: [completed]
|
|
|
|
jobs:
|
|
|
|
repository:
|
|
name: Update stable package repository
|
|
runs-on: [self-hosted, Linux, local]
|
|
if: ${{ github.repository_owner == 'Armbian' && github.event.workflow_run.conclusion == 'success' }} || github.event_name == 'workflow_dispatch'
|
|
steps:
|
|
|
|
- name: Install SSH key for repository
|
|
uses: shimataro/ssh-key-action@v2
|
|
with:
|
|
key: ${{ secrets.KEY_REPOSITORY }}
|
|
name: id_repository
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS_REPOSITORY }}
|
|
if_key_exists: replace
|
|
|
|
- name: Update stable repository
|
|
run: ssh -T -i ~/.ssh/id_repository ${{ secrets.USER_REPOSITORY }}@${{ secrets.HOST_REPOSITORY }}
|
|
|
|
repository-beta:
|
|
name: Update beta package repository
|
|
runs-on: [self-hosted, Linux, local]
|
|
if: ${{ github.repository_owner == 'Armbian' && github.event.workflow_run.conclusion == 'success' }} || github.event_name == 'workflow_dispatch'
|
|
steps:
|
|
|
|
- name: Install SSH key for repository
|
|
uses: shimataro/ssh-key-action@v2
|
|
with:
|
|
key: ${{ secrets.KEY_REPOSITORY_BETA }}
|
|
name: id_repository_beta
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS_REPOSITORY }}
|
|
if_key_exists: replace
|
|
|
|
- name: Update beta repository
|
|
run: ssh -T -i ~/.ssh/id_repository_beta ${{ secrets.USER_REPOSITORY }}@${{ secrets.HOST_REPOSITORY }}
|