Skip to content

Commit fa96ad7

Browse files
committed
Bump the action version and minor fixes
1 parent 563c09f commit fa96ad7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/diffBot.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
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 }}
@@ -77,6 +77,7 @@ jobs:
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 }}"
@@ -95,7 +96,7 @@ jobs:
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';

0 commit comments

Comments
 (0)