From ddd2544be4a68cad3749bb1dde716df6ca1e7c3d Mon Sep 17 00:00:00 2001 From: Thomas Casteleyn Date: Thu, 13 Jun 2024 10:15:25 +0200 Subject: [PATCH] Add automatic packaging --- .github/workflows/package.yml | 32 ++++++++++++++++++++++++++++++++ datamodel.sv-snmp-discovery.xml | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/package.yml diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 0000000..8a1ec72 --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,32 @@ +name: Module packaging +on: + push: + tags: + - '*' +jobs: + release: + name: Prepare release + runs-on: ubuntu-latest + steps: + - name: Checkout module + uses: actions/checkout@v4 + - name: Create package + uses: thedoctor0/zip-release@0.7.6 + with: + filename: ${{ github.workspace }}-${{ github.ref_name }}.zip + path: '*' + directory: '..' + exclusions: '*.git*' + - name: Create draft release + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + artifacts: ${{ github.workspace }}-${{ github.ref_name }}.zip + artifactErrorsFailBuild: true + draft: true + generateReleaseNotes: true + omitNameDuringUpdate: true + omitBodyDuringUpdate: true + omitPrereleaseDuringUpdate: true + updateOnlyUnreleased: true + token: ${{ secrets.ACCESS_TOKEN }} diff --git a/datamodel.sv-snmp-discovery.xml b/datamodel.sv-snmp-discovery.xml index 81d4086..c128fb2 100644 --- a/datamodel.sv-snmp-discovery.xml +++ b/datamodel.sv-snmp-discovery.xml @@ -460,7 +460,7 @@ 4 Menu:IPDiscovery:IPv4SNMP - sv-snmp-discovery-main/images/icons8-switch-48-search.png + sv-snmp-discovery/images/icons8-switch-48-search.png Menu:IPDiscovery:IPv4SNMP+ SELECT IPv4Address AS A JOIN NetworkDevice AS D ON D.managementip_id = A.id WHERE D.responds_to_snmp = 'yes' status