fix(ci): fix delivery condition (#5316)

This commit is contained in:
Kevin Duret 2024-12-05 16:46:39 +01:00 committed by GitHub
parent 508b2312fc
commit 15bc1661e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,8 +107,10 @@ runs:
} }
- name: Download packages from testing - name: Download packages from testing
if: ${{ inputs.stability == 'testing' }} if: ${{ inputs.stability == 'stable' && github.event_name == 'push' && inputs.distrib != 'jammy' }}
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
script: | script: |
const warningNoPromote = 'No packages are promoted because push is not related to a hotfix/release pull request.'; const warningNoPromote = 'No packages are promoted because push is not related to a hotfix/release pull request.';
@ -167,7 +169,7 @@ runs:
- name: Publish packages to ${{ inputs.stability }} - name: Publish packages to ${{ inputs.stability }}
if: | if: |
contains(fromJson('["testing", "unstable"]'), inputs.stability) || contains(fromJson('["testing", "unstable"]'), inputs.stability) ||
(needs.get-version.outputs.stability == 'stable' && github.event_name == 'push' && inputs.distrib != 'jammy') (inputs.stability == 'stable' && github.event_name == 'push' && inputs.distrib != 'jammy')
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with: with:
script: | script: |