Skip to content

Update SonosAdvPlayer.groovy #61

Update SonosAdvPlayer.groovy

Update SonosAdvPlayer.groovy #61

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
paths:
- Drivers/Component/SonosAdvBatteryStats.groovy
- Drivers/Component/SonosAdvGroup.groovy
- Drivers/Component/SonosAdvPlayer.groovy
- Drivers/Component/SonosAdvSnapshot.groovy
- Apps/SonosAdvancedApp.groovy
- Libraries/SMAPILibrary.groovy
- Libraries/UtilitiesAndLoggingLibrary.groovy
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
name: Copy Sonos Advanced Controller Files To Bundle Directory
runs-on: [ubuntu-latest]
permissions:
contents: write
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Make copy of files
run: |
mkdir -p Bundles/SonosAdvancedController
cp Libraries/UtilitiesAndLoggingLibrary.groovy Bundles/SonosAdvancedController/dwinks.UtilitiesAndLoggingLibrary.groovy
cp Libraries/SMAPILibrary.groovy Bundles/SonosAdvancedController/dwinks.SMAPILibrary.groovy
- name: Zip Bundle
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'SonosAdvancedController.zip'
directory: 'Bundles/SonosAdvancedController'
- name: Move Bundle to parent directory
run: |
mv Bundles/SonosAdvancedController/SonosAdvancedController.zip Bundles/SonosAdvancedController.zip
- name: Commit changes
uses: EndBug/add-and-commit@v9