diff --git a/.github/actions/package-delivery/action.yml b/.github/actions/package-delivery/action.yml index 0e5c7fcda3..4a305d03ea 100644 --- a/.github/actions/package-delivery/action.yml +++ b/.github/actions/package-delivery/action.yml @@ -107,8 +107,10 @@ runs: } - 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 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: script: | 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 }} if: | 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 with: script: |