Skip to content

Validate apt pkg release post build and publish #12

Validate apt pkg release post build and publish

Validate apt pkg release post build and publish #12

name: "Validate apt pkg release post build and publish"
on:
workflow_dispatch:
workflow_run:
workflows: [Build Release and Publish to DEB Repo]
types:
- completed
jobs:
on-success:
name: On Success
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- run: echo '::info::The triggering workflow passed'
validate:
name: Validate Release
runs-on: ubuntu-latest
steps:
- name: Install Homebridge
run: |
sudo curl -sSfL https://repo.homebridge.io/KEY.gpg | sudo gpg --dearmor | sudo tee /usr/share/keyrings/homebridge.gpg > /dev/null
sudo echo "deb [signed-by=/usr/share/keyrings/homebridge.gpg] https://repo.homebridge.io stable main" | sudo tee /etc/apt/sources.list.d/homebridge.list > /dev/null
sudo apt-get update
sudo apt-get install homebridge
- name: Validate Homebridge
run: |
sudo hb-service status