From b4df82c7eb32db0baf71fcfc61712f4f9687d3ba Mon Sep 17 00:00:00 2001 From: Alexey Tsymbal Date: Thu, 10 Nov 2022 22:03:31 +0400 Subject: [PATCH] fix: github cd action syntax error --- .github/workflows/main.yaml | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index bcab592..20defb3 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -62,26 +62,14 @@ jobs: outputs: image_tag: ${{ steps.get-image-tag.outputs.image_tag }} -# cd_development: -# if: ${{ contains(github.ref, 'heads/main') }} -# needs: -# - docker-image -# uses: ./.github/workflows/cd.yaml -# with: -# environment: development -# service_name: ${{ github.event.repository.name }} -# service_image_tag: ${{ needs.docker-image.outputs.image_tag }} -# secrets: -# api_github_token: ${{ secrets.API_TOKEN_GITHUB }} - - cd_production: - if: ${{ contains(github.ref, 'heads/main') }} - needs: - - docker-image - uses: ./.github/workflows/cd.yaml - with: - environment: production - service_name: ${{ github.event.repository.name }} - service_image_tag: ${{ needs.docker-image.outputs.image_tag }} - secrets: - api_github_token: ${{ secrets.API_TOKEN_GITHUB }} + cd_production: + if: ${{ contains(github.ref, 'heads/main') }} + needs: + - docker-image + uses: ./.github/workflows/cd.yaml + with: + environment: production + service_name: ${{ github.event.repository.name }} + service_image_tag: ${{ needs.docker-image.outputs.image_tag }} + secrets: + api_github_token: ${{ secrets.API_TOKEN_GITHUB }}