Skip to content

Commit 1902b63

Browse files
authored
Update update.yml
1 parent c5483ae commit 1902b63

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/update.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
- name: Show Response
4949
run: |
5050
echo ${{ fromJson(steps.myRequest.outputs.response)[0] }}
51-
- name: Update Latest Version
51+
- name: Show Latest Version
5252
run: |
5353
echo ${{ vars.Latest_Version }}
54+
- name: Update Latest Version
55+
if: ${{ vars.Latest_Version == 'null' || vars.Latest_Version != fromJson(steps.myRequest.outputs.response)[0].id }}
56+
run: |
57+
vars.Latest_Version = fromJson(steps.myRequest.outputs.response)[0].id

0 commit comments

Comments
 (0)