Skip to content

Commit ca7be07

Browse files
authored
Update get-latest-agent-version.yaml
1 parent b06e88f commit ca7be07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/get-latest-agent-version.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
jq -r ".tag_name" | sed 's/^v\(.*\)$/\1/' > latest-agent-version
1414
- name: Check for modified files
1515
id: git-check
16-
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)
16+
run: echo ::set-output name=modified::$([ -z "`git status --porcelain latest-agent-version`" ] && echo "false" || echo "true")
1717
- name: Commit latest release version
1818
if: steps.git-check.outputs.modified == 'true'
1919
run: |

0 commit comments

Comments
 (0)