From 7d64add26486412a36e1d9de0fcfe5fdfa6a1618 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Mon, 9 Dec 2024 12:22:41 +0100 Subject: [PATCH] test(ci): test release 6 --- .github/actions/package-delivery/action.yml | 30 ++++++++++----------- .github/workflows/plugins.yml | 27 ++++++++++--------- 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/.github/actions/package-delivery/action.yml b/.github/actions/package-delivery/action.yml index 86a30dce93..efb43c5b4c 100644 --- a/.github/actions/package-delivery/action.yml +++ b/.github/actions/package-delivery/action.yml @@ -26,21 +26,21 @@ inputs: runs: using: "composite" steps: - # - name: Validate inputs - # uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - # with: - # script: | - # if ('${{ inputs.module_name }}' === '') { - # throw new Error('module_name input must be defined'); - # } - - # if (! ['stable', 'testing', 'unstable'].includes('${{ inputs.stability }}')) { - # throw new Error(`Stability ${{ inputs.stability }} should not deliver packages`); - # } - - # if ('${{ inputs.stability }}' === 'testing' && ! ['release', 'hotfix'].includes('${{ inputs.release_type }}')) { - # throw new Error('release_type input must be defined when stability is testing'); - # } + - name: Validate inputs + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 + with: + script: | + if ('${{ inputs.module_name }}' === '') { + throw new Error('module_name input must be defined'); + } + + if (! ['stable', 'testing', 'unstable'].includes('${{ inputs.stability }}')) { + throw new Error(`Stability ${{ inputs.stability }} should not deliver packages`); + } + + if ('${{ inputs.stability }}' === 'testing' && ! ['release', 'hotfix'].includes('${{ inputs.release_type }}')) { + throw new Error('release_type input must be defined when stability is testing'); + } - name: Parse distrib name id: parse-distrib diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml index 12687b3eb3..06577a1476 100644 --- a/.github/workflows/plugins.yml +++ b/.github/workflows/plugins.yml @@ -34,7 +34,7 @@ jobs: outputs: plugins: ${{ steps.get_plugins.outputs.plugins }} steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 @@ -127,9 +127,10 @@ jobs: credentials: username: ${{ secrets.HARBOR_CENTREON_PULL_USERNAME }} password: ${{ secrets.HARBOR_CENTREON_PULL_TOKEN }} + steps: - name: Checkout sources - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Run unit tests uses: ./.github/actions/unit-tests @@ -214,7 +215,7 @@ jobs: steps: - name: Checkout sources - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: actions/cache/restore@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 with: @@ -338,7 +339,7 @@ jobs: password: ${{ secrets.HARBOR_CENTREON_PULL_TOKEN }} steps: - name: Checkout sources - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ./.github/actions/test-plugins with: @@ -356,12 +357,12 @@ jobs: deliver-packages: needs: [get-environment, get-plugins, test-plugins] - if: | - needs.get-plugins.outputs.plugins != '' && - (contains(fromJson('["testing", "unstable"]'), needs.get-environment.outputs.stability) || (needs.get-environment.outputs.stability == 'stable' && github.event_name != 'workflow_dispatch')) && - ! cancelled() && - ! contains(needs.*.result, 'failure') && - ! contains(needs.*.result, 'cancelled') + # if: | + # needs.get-plugins.outputs.plugins != '' && + # (contains(fromJson('["testing", "unstable"]'), needs.get-environment.outputs.stability) || (needs.get-environment.outputs.stability == 'stable' && github.event_name != 'workflow_dispatch')) && + # ! cancelled() && + # ! contains(needs.*.result, 'failure') && + # ! contains(needs.*.result, 'cancelled') runs-on: ubuntu-24.04 strategy: fail-fast: false @@ -383,7 +384,7 @@ jobs: name: deliver ${{ matrix.distrib }} steps: - name: Checkout sources - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Delivery uses: ./.github/actions/package-delivery @@ -402,7 +403,7 @@ jobs: steps: - name: Checkout sources - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: actions/cache/restore@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 with: @@ -427,7 +428,7 @@ jobs: steps: - name: Checkout sources - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Push git release tag run: |