Commit 1dc2eae 1 parent d6c33dc commit 1dc2eae Copy full SHA for 1dc2eae
File tree 1 file changed +24
-7
lines changed
1 file changed +24
-7
lines changed Original file line number Diff line number Diff line change 21
21
push :
22
22
paths :
23
23
- ' .github/workflows/ci_docker.yml'
24
- - ' **/Dockerfile'
25
- - ' inlong-agent/agent-docker/**'
26
- - ' inlong-audit/audit-docker/**'
27
- - ' inlong-dataproxy/dataproxy-docker/**'
28
- - ' inlong-manager/manager-docker/**'
29
- - ' inlong-tubemq/tubemq-docker/**'
24
+ - ' **/pom.xml'
25
+ - ' inlong-agent/**'
26
+ - ' inlong-audit/**'
27
+ - ' inlong-common/**'
28
+ - ' inlong-dashboard/**'
29
+ - ' inlong-dataproxy/**'
30
+ - ' inlong-distribution/**'
31
+ - ' inlong-manager/**'
32
+ - ' inlong-sdk/**'
33
+ - ' inlong-sort/**'
34
+ - ' inlong-sort-standalone/**'
35
+ - ' inlong-tubemq/**'
30
36
- ' !**.md'
31
37
32
38
pull_request :
73
79
env :
74
80
CI : false
75
81
82
+ # Check if only the workflow file is changed.
83
+ - name : Check workflow diff
84
+ id : check-workflow-diff
85
+ uses : apache/pulsar-test-infra/diff-only@master
86
+ with :
87
+ args : .github/workflows/ci_docker.yml
88
+
76
89
# If the changes are being pushed to the master branch or a branch like 'release-1.0.0', this step will output true.
77
90
- name : Match branch
78
91
id : match-branch
85
98
echo "::set-output name=match::true"
86
99
fi
87
100
101
+ # If only this workflow file is changed, there is no need to publish Docker images.
88
102
- name : Push Docker images to Docker Hub
89
- if : ${{ success() && steps.match-branch.outputs.match == 'true' }}
103
+ if : |
104
+ success()
105
+ && steps.check-workflow-diff.outputs.changed_only == 'no'
106
+ && steps.match-branch.outputs.match == 'true'
90
107
working-directory : docker
91
108
run : bash +x publish.sh
92
109
env :
You can’t perform that action at this time.
0 commit comments