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

View File

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