Skip to content

Commit

Permalink
fix(ci): condition debian delivery and promote to not being in a clou…
Browse files Browse the repository at this point in the history
…d context (#1611)
  • Loading branch information
mushroomempires authored Aug 20, 2024
1 parent 198ed27 commit 1e6e0ef
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/actions/promote-to-stable/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ runs:
shell: bash

- name: Promote DEB packages to stable
if: ${{ contains(fromJSON('["bullseye", "bookworm"]'), inputs.distrib) }}
if: ${{ !inputs.release_cloud && contains(fromJSON('["bullseye", "bookworm"]'), inputs.distrib) }}
run: |
set -eux
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/centreon-collect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ jobs:
release_cloud: ${{ needs.get-version.outputs.release_cloud }}

deliver-deb:
if: ${{ contains(fromJson('["testing", "stable"]'), needs.get-version.outputs.stability) }}
if: ${{ !needs.get-version.outputs.release_cloud && contains(fromJson('["testing", "stable"]'), needs.get-version.outputs.stability) }}
needs: [get-version, package]
environment: ${{ needs.get-version.outputs.environment }}
runs-on: [self-hosted, common]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gorgone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ jobs:
deliver-deb:
runs-on: [self-hosted, common]
needs: [get-version, package]
if: ${{ contains(fromJson('["testing", "unstable"]'), needs.get-version.outputs.stability) }}
if: ${{ !needs.get-version.outputs.release_cloud && contains(fromJson('["testing", "unstable"]'), needs.get-version.outputs.stability) }}

strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/libzmq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ jobs:
release_cloud: ${{ needs.get-version.outputs.release_cloud }}

deliver-deb:
if: ${{ contains(fromJson('["testing", "unstable"]'), needs.get-version.outputs.stability) }}
if: ${{ !needs.get-version.outputs.release_cloud && contains(fromJson('["testing", "unstable"]'), needs.get-version.outputs.stability) }}
needs: [get-version, package-deb]
environment: ${{ needs.get-version.outputs.environment }}
runs-on: [self-hosted, common]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lua-curl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ jobs:
release_cloud: ${{ needs.get-version.outputs.release_cloud }}

deliver-deb:
if: ${{ contains(fromJson('["testing", "unstable"]'), needs.get-version.outputs.stability) }}
if: ${{ !needs.get-version.outputs.release_cloud && contains(fromJson('["testing", "unstable"]'), needs.get-version.outputs.stability) }}
needs: [get-version, package]
runs-on: ubuntu-22.04
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/robot-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
release_cloud: ${{ needs.get-version.outputs.release_cloud }}

deliver-deb:
if: ${{ contains(fromJson('["unstable"]'), needs.get-version.outputs.stability) }}
if: ${{ !needs.get-version.outputs.release_cloud && contains(fromJson('["unstable"]'), needs.get-version.outputs.stability) }}
needs: [robot-test, get-version]
runs-on: [self-hosted, common]
strategy:
Expand Down

0 comments on commit 1e6e0ef

Please sign in to comment.