We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b06e88f commit ca7be07Copy full SHA for ca7be07
.github/workflows/get-latest-agent-version.yaml
@@ -13,7 +13,7 @@ jobs:
13
jq -r ".tag_name" | sed 's/^v\(.*\)$/\1/' > latest-agent-version
14
- name: Check for modified files
15
id: git-check
16
- run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)
+ run: echo ::set-output name=modified::$([ -z "`git status --porcelain latest-agent-version`" ] && echo "false" || echo "true")
17
- name: Commit latest release version
18
if: steps.git-check.outputs.modified == 'true'
19
run: |
0 commit comments