diff --git a/.github/workflows/integration-cd.yml b/.github/workflows/integration-cd.yml index 9d47a4e4..bc21b023 100644 --- a/.github/workflows/integration-cd.yml +++ b/.github/workflows/integration-cd.yml @@ -28,11 +28,16 @@ jobs: id: branch uses: tj-actions/branch-names@v7.0.7 + - name: Get tag + shell: bash + id: get_tag + run: echo TAG=$PREFIX_TAG$(echo $GITHUB_REF | cut -d / -f 3) >> $GITHUB_OUTPUT + - name: Trigger CI / CD uses: aurelien-baudet/workflow-dispatch@v2 with: workflow: integration-cd.yml repo: PrestaShopCorp/qanightlyresults-cd - inputs: '{ "branch": "${{ steps.branch.outputs.current_branch }}", "bulle": "${{ steps.get_bulle.outputs.BULLE }}", "project": "api-nightly", "repository": "PrestaShop/QANightlyResults"}' + inputs: '{ "branch": "${{ steps.branch.outputs.current_branch }}", "bulle": "${{ steps.get_bulle.outputs.BULLE }}", "project": "api-nightly", "repository": "PrestaShop/QANightlyResults", "tag": "${{ steps.get_tag.outputs.TAG }}", "commit": "${{ github.sha }}"}' token: ${{ secrets.TERRAFORM_ACCESS_TOKEN }} ref: 'refs/heads/main' \ No newline at end of file diff --git a/.github/workflows/preproduction-cd.yml b/.github/workflows/preproduction-cd.yml index 39704e47..f1d46691 100644 --- a/.github/workflows/preproduction-cd.yml +++ b/.github/workflows/preproduction-cd.yml @@ -20,11 +20,16 @@ jobs: id: branch uses: tj-actions/branch-names@v7.0.7 + - name: Get tag + shell: bash + id: get_tag + run: echo TAG=$PREFIX_TAG$(echo $GITHUB_REF | cut -d / -f 3) >> $GITHUB_OUTPUT + - name: Trigger CI / CD uses: aurelien-baudet/workflow-dispatch@v2 with: workflow: preproduction-cd.yml repo: PrestaShopCorp/qanightlyresults-cd - inputs: '{ "branch": "${{ steps.branch.outputs.current_branch }}", "project": "api-nightly", "repository": "PrestaShop/QANightlyResults"}' + inputs: '{ "branch": "${{ steps.branch.outputs.current_branch }}", "project": "api-nightly", "repository": "PrestaShop/QANightlyResults", "tag": "${{ steps.get_tag.outputs.TAG }}", "commit": "${{ github.sha }}"}' token: ${{ secrets.TERRAFORM_ACCESS_TOKEN }} ref: 'refs/heads/main' diff --git a/.github/workflows/production-cd.yml b/.github/workflows/production-cd.yml index 9ce0879d..b6095c47 100644 --- a/.github/workflows/production-cd.yml +++ b/.github/workflows/production-cd.yml @@ -19,11 +19,16 @@ jobs: id: branch uses: tj-actions/branch-names@v7.0.7 + - name: Get tag + shell: bash + id: get_tag + run: echo TAG=$PREFIX_TAG$(echo $GITHUB_REF | cut -d / -f 3) >> $GITHUB_OUTPUT + - name: Trigger CI / CD uses: aurelien-baudet/workflow-dispatch@v2 with: workflow: production-cd.yml repo: PrestaShopCorp/qanightlyresults-cd - inputs: '{ "branch": "${{ steps.branch.outputs.current_branch }}", "project": "api-nightly", "repository": "PrestaShop/QANightlyResults"}' + inputs: '{ "branch": "${{ steps.branch.outputs.current_branch }}", "project": "api-nightly", "repository": "PrestaShop/QANightlyResults", "tag": "${{ steps.get_tag.outputs.TAG }}", "commit": "${{ github.sha }}"}' token: ${{ secrets.TERRAFORM_ACCESS_TOKEN }} ref: 'refs/heads/main' \ No newline at end of file