Skip to content

Commit 16e9c00

Browse files
committed
visualiser-docker-image.yml for workflow
1 parent 9550303 commit 16e9c00

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/visualiser-docker-image.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
name: Push Visualiser Docker
1+
name: Push Visualiser Docker on Comment
2+
23
on:
3-
push:
4-
branches: [main]
5-
tags:
6-
- "v*"
4+
issue_comment:
5+
types:
6+
- created
77

88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
1112
steps:
13+
- name: Check Comment
14+
id: check_comment
15+
run: echo ::set-output name=contains_build_visualiser::$(echo "${{ github.event.comment.body }}" | grep -c 'build-visualiser')
16+
1217
- name: Checkout repository with lfs
1318
uses: actions/checkout@v2
1419
with:
@@ -36,3 +41,4 @@ jobs:
3641
push: true
3742
tags: ${{ steps.meta.outputs.tags }}
3843
labels: ${{ steps.meta.outputs.labels }}
44+
if: steps.check_comment.outputs.contains_build_visualiser == '1'

0 commit comments

Comments
 (0)