File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5151 # Step 1: Run the exporter
5252 - name : Running the RM action exporter
5353 if : ${{ steps.trigger.outputs.triggered == 'true'}}
54- uses : pouryafard75/refactoringminer-astdiff-exporter@v1.0
54+ uses : pouryafard75/refactoringminer-astdiff-exporter@v1.1
5555 id : run_rm_exporter
5656 with :
5757 OAuthToken : ${{ secrets.OAUTHTOKEN }}
7777
7878 - name : Generate image list
7979 id : generate-paths
80+ if : ${{ steps.trigger.outputs.screenshot != null && steps.run_rm_exporter.outputs.numberOfScreenshots != 0 }}
8081 run : |
8182 # Ensure the output from the previous step is evaluated properly
8283 number_of_screenshots="${{ steps.run_rm_exporter.outputs.numberOfScreenshots }}"
9596 echo "EOF" >> $GITHUB_ENV
9697
9798 - name : Upload image
98- if : ${{ steps.trigger.outputs.screenshot != null }}
99+ if : ${{ steps.trigger.outputs.screenshot != null && steps.run_rm_exporter.outputs.numberOfScreenshots != 0 }}
99100 id : upload-image-all
100101 uses : McCzarny/upload-image@v1.5.0
101102 with :
@@ -106,7 +107,7 @@ jobs:
106107
107108 - name : ' Comment Screenshots'
108109 uses : actions/github-script@v7
109- if : ${{ steps.trigger.outputs.screenshot != null }}
110+ if : ${{ steps.trigger.outputs.screenshot != null && steps.run_rm_exporter.outputs.numberOfScreenshots != 0 }}
110111 with :
111112 script : |
112113 let commentBody = 'Image(s):\n';
You can’t perform that action at this time.
0 commit comments