From 5d1a54a72068304d44093600b845fc5530e31c7a Mon Sep 17 00:00:00 2001 From: Arthur Simas Date: Wed, 25 May 2022 11:44:38 -0300 Subject: [PATCH] CI: . --- .github/workflows/deploy-manually.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-manually.yml b/.github/workflows/deploy-manually.yml index 49f7e77..630d065 100644 --- a/.github/workflows/deploy-manually.yml +++ b/.github/workflows/deploy-manually.yml @@ -39,11 +39,12 @@ jobs: new_release_published: ${{ steps.semantic.outputs.new_release_published }} new_release_version: ${{ steps.semantic.outputs.new_release_version }} test: ${{ (steps.semantic.outputs.new_release_published == 'true' && steps.semantic.outputs.new_release_version) || (github.event_name == 'workflow_dispatch' && '0.0.0') }} + testt: ${{ (needs.semantic_release.outputs.new_release_published == 'true' && needs.semantic_release.outputs.new_release_version) || '1.0.0' }} steps: - name: Checkout uses: actions/checkout@v2 - - if: github.event_name == 'workflow_dispatch' + - if: github.event_name != 'workflow_dispatch' name: Semantic Release uses: cycjimmy/semantic-release-action@v2 id: semantic @@ -60,7 +61,7 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} deploy: - if: ${{ needs.semantic_release.outputs.new_release_published == 'true' || github.event_name == 'workflow_dispatch' }} + if: ${{ (github.event_name != 'workflow_dispatch' && needs.semantic_release.outputs.new_release_published == 'true') || 'true' }} needs: [extract_environment, semantic_release] runs-on: [self-hosted, '${{ needs.extract_environment.outputs.environment }}'] @@ -70,7 +71,8 @@ jobs: env: EVENT: ${{ github.event_name }} IMAGE_TAG: ${{ needs.semantic_release.outputs.test }} - run: echo ${IMAGE_TAG} ${EVENT} + IMAGE_TAGG: ${{ needs.semantic_release.outputs.testT }} + run: echo ${IMAGE_TAG} ${IMAGE_TAGG} ${EVENT} - name: Checkout uses: actions/checkout@v2