diff --git a/.github/workflows/deploy-manually.yml b/.github/workflows/deploy-manually.yml index c87cfa1..07ed744 100644 --- a/.github/workflows/deploy-manually.yml +++ b/.github/workflows/deploy-manually.yml @@ -38,11 +38,13 @@ jobs: #new_release_published: ${{ steps.semantic.outputs.last_release_version != steps.semantic.outputs.new_release_version }} 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') }} steps: - name: Checkout uses: actions/checkout@v2 - - name: Semantic Release + - if: github.event_name == 'workflow_dispatch' + name: Semantic Release uses: cycjimmy/semantic-release-action@v2 id: semantic with: @@ -58,12 +60,17 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} deploy: - if: needs.semantic_release.outputs.new_release_published == 'true' + if: needs.semantic_release.outputs.new_release_published == 'true' || github.event_name == 'workflow_dispatch' needs: [extract_environment, semantic_release] runs-on: [self-hosted, '${{ needs.extract_environment.outputs.environment }}'] steps: + - name: print + env: + IMAGE_TAG: ${{ needs.semantic_release.outputs.test }} + run: echo ${IMAGE_TAG} + - name: Checkout uses: actions/checkout@v2