Browse Source

only commit when new changes occur

Mohammed Nafees 4 năm trước cách đây
mục cha
commit
78bb57b119
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      .github/workflows/prerelease.yaml

+ 1 - 1
.github/workflows/prerelease.yaml

@@ -505,7 +505,7 @@ jobs:
 
           git add .
 
-          git commit -m "Update to Porter GHA version ${{steps.tag_name.outputs.tag}}"
+          git diff --quiet --exit-code || git commit -m "Update to Porter GHA version ${{steps.tag_name.outputs.tag}}"
 
           git push -f
   run-new-release-tests-workflows: