Skip to content

Commit 64ceaad

Browse files
committed
Fix invalid syntax
1 parent abf8853 commit 64ceaad

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/reusable-regenerate-readme.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ jobs:
5353
5454
- name: Check if remote branch exists
5555
id: check_remote_branch
56-
run: >
57-
echo "exists=$(git ls-remote --exit-code --heads origin regenerate-readme &>/dev/null
58-
&& echo "true" || echo "false")" >>"${GITHUB_OUTPUT}"
56+
run: |
57+
echo "exists=$(git ls-remote --exit-code --heads origin regenerate-readme &>/dev/null && echo "true" || echo "false")" >>"${GITHUB_OUTPUT}"
5958
6059
- name: Create branch to base pull request on
6160
if: ${{ steps.check_remote_branch.outputs.exists == 'false' }}
@@ -82,9 +81,8 @@ jobs:
8281
8382
- name: Check if there are changes
8483
id: check_changes
85-
run: >
86-
echo "detected=$(test -n "$(git status --porcelain 2>/dev/null)"
87-
&& echo "true" || echo "false")" >>"${GITHUB_OUTPUT}"
84+
run: |
85+
echo "detected=$(test -n "$(git status --porcelain 2>/dev/null)" && echo "true" || echo "false")" >>"${GITHUB_OUTPUT}"
8886
8987
- name: Commit changes
9088
if: ${{ steps.check_changes.outputs.detected == 'true' }}

0 commit comments

Comments
 (0)