mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-12 22:19:08 +00:00
CI: not considering semver during manual deploy
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user