diff --git a/.github/workflows/registry-docs-pr-based.yml b/.github/workflows/registry-docs-pr-based.yml index fccfd0dc0a..9f3ab0cb2f 100644 --- a/.github/workflows/registry-docs-pr-based.yml +++ b/.github/workflows/registry-docs-pr-based.yml @@ -192,7 +192,7 @@ jobs: git checkout -b d-cdktf-docs-${{ github.run_id }}-${{ github.run_number }} git add . git commit -m "cdktf: update ${{ matrix.files }}" - for i in $(seq 1 10); do (git pull origin d-cdktf-docs-${{ github.run_id }}-${{ github.run_number }} --rebase && git push origin d-cdktf-docs-${{ github.run_id }}-${{ github.run_number }}) && break || (git rebase --abort && sleep 15); done + for i in $(seq 1 10); do git pull origin d-cdktf-docs-${{ github.run_id }}-${{ github.run_number }} --rebase && git push origin d-cdktf-docs-${{ github.run_id }}-${{ github.run_number }}) && break || ((git rebase --abort || echo 'rebase could not be aborted, maybe no rebase is in progress?') && sleep 15); done cdktfDocsCreatePR: needs: