Skip to content

Commit 60e3985

Browse files
authored
Fix file change handling
1 parent 2530f8a commit 60e3985

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/openapi.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,13 @@ jobs:
8888
--additional-properties 'invokerPackage=Cone\Billingo,variableNamingConvention=camelCase,srcBasePath=src'
8989
-
9090
name: "Check difference to repository"
91-
id: "list_diff"
9291
run: |
93-
if ! git diff --exit-code; then
94-
echo "exit_status=1" >>"${GITHUB_OUTPUT}"
92+
if [ -z "$(git status --porcelain)" ]; then
93+
echo "No changes!"
94+
exit 10
9595
fi
9696
-
9797
name: "Create pull request"
98-
if: "${{ steps.list_diff.outputs.exit_status == '1' }}"
9998
uses: "peter-evans/create-pull-request@v5"
10099
with:
101100
add-paths: "./"

0 commit comments

Comments
 (0)