We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9550303 commit 16e9c00Copy full SHA for 16e9c00
1 file changed
.github/workflows/visualiser-docker-image.yml
@@ -1,14 +1,19 @@
1
-name: Push Visualiser Docker
+name: Push Visualiser Docker on Comment
2
+
3
on:
- push:
4
- branches: [main]
5
- tags:
6
- - "v*"
+ issue_comment:
+ types:
+ - created
7
8
jobs:
9
build:
10
runs-on: ubuntu-latest
11
12
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
17
- name: Checkout repository with lfs
18
uses: actions/checkout@v2
19
with:
@@ -36,3 +41,4 @@ jobs:
36
41
push: true
37
42
tags: ${{ steps.meta.outputs.tags }}
38
43
labels: ${{ steps.meta.outputs.labels }}
44
+ if: steps.check_comment.outputs.contains_build_visualiser == '1'
0 commit comments