This commit is contained in:
Arthur Simas
2022-05-25 11:45:37 -03:00
parent 8399a0e4c1
commit 5d1a54a720
+5 -3
View File
@@ -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