Merge pull request #263 from PrestaShop/dependabot/composer/develop/p… #166
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: preprod CD for QAnightly | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
preprod_deployment: | |
name: Deploy (preprod) | |
runs-on: ubuntu-latest | |
environment: preproduction | |
concurrency: preprod-cd | |
steps: | |
- name: Checkout the repository 🎁 | |
uses: actions/checkout@v3 | |
- name: Get branch name | |
id: branch | |
uses: tj-actions/[email protected] | |
- 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", "tag": "${{ steps.get_tag.outputs.TAG }}", "commit": "${{ github.sha }}"}' | |
token: ${{ secrets.TERRAFORM_ACCESS_TOKEN }} | |
ref: 'refs/heads/main' |