CI: not considering semver during manual deploy

This commit is contained in:
Arthur Simas
2022-05-25 11:37:14 -03:00
parent 2344e4dba3
commit cf54cb0bc2
+9 -2
View File
@@ -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