Skip to content

Commit

Permalink
enh(delivery): no deliver source and promote on dispatch (#4771)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuntoja authored Dec 14, 2023
1 parent e131086 commit 16c91bf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/plugin-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 16c91bf

Please sign in to comment.