Skip to content

Commit 16efa0c

Browse files
committed
fix workflow condition for stable
1 parent 3f5195d commit 16efa0c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: docker://thehiveproject/cortex-neurons-builder:latest
2525
with:
2626
args: |
27-
--namespace cortexneurons --path analyzers --registry_dockerhub ${{ secrets.REGISTRY_DOCKERHUB }} --registry_harbor ${{ secrets.REGISTRY_HARBOR }} ${{ (github.event.name == 'tag' || github.event.name == 'schedule') && '--stable' || '' }}
27+
--namespace cortexneurons --path analyzers --registry_dockerhub ${{ secrets.REGISTRY_DOCKERHUB }} --registry_harbor ${{ secrets.REGISTRY_HARBOR }} ${{ (startsWith(github.ref, 'refs/tags') || github.event_name == 'schedule') && '--stable' || '' }}
2828
2929
build_responders:
3030
name: Build Responders
@@ -38,7 +38,7 @@ jobs:
3838
uses: docker://thehiveproject/cortex-neurons-builder:latest
3939
with:
4040
args: |
41-
--namespace cortexneurons --path responders --registry_dockerhub ${{ secrets.REGISTRY_DOCKERHUB }} --registry_harbor ${{ secrets.REGISTRY_HARBOR }} ${{ (github.event.name == 'tag' || github.event.name == 'schedule') && '--stable' || '' }}
41+
--namespace cortexneurons --path responders --registry_dockerhub ${{ secrets.REGISTRY_DOCKERHUB }} --registry_harbor ${{ secrets.REGISTRY_HARBOR }} ${{ (startsWith(github.ref, 'refs/tags') || github.event_name == 'schedule') && '--stable' || '' }}
4242
4343
build_catalog:
4444
name: Build Catalog
@@ -61,7 +61,7 @@ jobs:
6161
responders/responders.json
6262
- name: Make Release
6363
uses: softprops/action-gh-release@v1
64-
if: github.event.name == 'tag'
64+
if: startsWith(github.ref, 'refs/tags/')
6565
with:
6666
generate_release_notes: true
6767
files: |
@@ -75,7 +75,7 @@ jobs:
7575
name: Build documentation
7676
runs-on: [ ubuntu-latest ]
7777
needs: [build_analyzers, build_responders ]
78-
if: github.event.name == 'tag'
78+
if: startsWith(github.ref, 'refs/tags/')
7979
steps:
8080
- uses: actions/checkout@v3
8181
- name: Prepare documentation files

0 commit comments

Comments
 (0)