Add feature to also discover additional devices in production #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Collector packaging | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
release: | |
name: Prepare release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout collector-base | |
uses: actions/checkout@v4 | |
with: | |
repository: Combodo/itop-data-collector-base | |
ref: 1.3.1 | |
sparse-checkout: | | |
conf | |
core | |
data | |
exec.php | |
toolkit | |
sparse-checkout-cone-mode: false | |
path: ${{ github.repository }} | |
- name: Checkout current collector | |
uses: actions/checkout@v4 | |
with: | |
path: ${{ github.repository }}/collectors | |
- name: Create package | |
uses: thedoctor0/[email protected] | |
with: | |
filename: ../${{ github.repository }}-${{ github.ref_name }}.zip | |
path: '*' | |
directory: ${{ github.repository_owner }} | |
exclusions: '*.git*' | |
- name: Create draft release | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifacts: ${{ github.repository }}-${{ github.ref_name }}.zip | |
artifactErrorsFailBuild: true | |
draft: true | |
generateReleaseNotes: true | |
omitNameDuringUpdate: true | |
omitBodyDuringUpdate: true | |
omitPrereleaseDuringUpdate: true | |
updateOnlyUnreleased: true | |
token: ${{ secrets.ACCESS_TOKEN }} |