diff --git a/.github/workflows/integration-cd.yml b/.github/workflows/integration-cd.yml index 4b99c01..782c7dd 100644 --- a/.github/workflows/integration-cd.yml +++ b/.github/workflows/integration-cd.yml @@ -28,12 +28,17 @@ 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": "nightly", "repository": "PrestaShop/nightly-board", "commit": "${{ github.sha }}"}' + inputs: '{ "branch": "${{ steps.branch.outputs.current_branch }}", "bulle": "${{ steps.get_bulle.outputs.BULLE }}", "project": "nightly", "repository": "PrestaShop/nightly-board", "tag": "${{ steps.get_tag.outputs.TAG }}"}' token: ${{ secrets.TERRAFORM_ACCESS_TOKEN }} # ref: 'refs/heads/main' ref: 'refs/heads/fix/ci-deployment' \ No newline at end of file