Skip to content

Commit

Permalink
Create validate_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Jun 20, 2024
1 parent fe779ad commit 0a53da3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/validate_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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 'The triggering workflow passed'

validate:
name: Validate Release
needs: [on-success]
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

0 comments on commit 0a53da3

Please sign in to comment.