enh(delivery): no deliver source and promote on dispatch (#4771)

This commit is contained in:
tuntoja 2023-12-14 11:33:05 +01:00 committed by GitHub
parent e131086ffe
commit 16c91bf3d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -24,7 +24,7 @@ on:
jobs:
deliver-sources:
runs-on: [self-hosted, common]
if: ${{ contains(fromJson('["stable"]'), inputs.stability) }}
if: ${{ contains(fromJson('["stable"]'), inputs.stability) && github.event_name != 'workflow_dispatch' }}
steps:
- name: Checkout sources
@ -47,6 +47,7 @@ jobs:
token_download_centreon_com: ${{ secrets.token_download_centreon_com }}
deliver-rpm:
if: ${{ github.event_name != 'workflow_dispatch' }}
runs-on: [self-hosted, common]
strategy:
fail-fast: false
@ -67,7 +68,7 @@ jobs:
artifactory_token: ${{ secrets.artifactory_token }}
deliver-rpm-legacy:
if: ${{ inputs.stability == 'stable' }}
if: ${{ inputs.stability == 'stable' && github.event_name != 'workflow_dispatch' }}
runs-on: [self-hosted, common]
strategy:
fail-fast: false
@ -90,6 +91,7 @@ jobs:
artifactory_token: ${{ secrets.artifactory_token }}
deliver-deb:
if: ${{ github.event_name != 'workflow_dispatch' }}
runs-on: [self-hosted, common]
strategy:
fail-fast: false
@ -110,7 +112,7 @@ jobs:
artifactory_token: ${{ secrets.artifactory_token }}
deliver-deb-legacy:
if: ${{ inputs.stability == 'stable' }}
if: ${{ inputs.stability == 'stable' && github.event_name != 'workflow_dispatch' }}
runs-on: [self-hosted, common]
strategy:
fail-fast: false