From c4c3b40adbe5364eb17e46d3fec52c30782d4294 Mon Sep 17 00:00:00 2001 From: Shahrad Rezaei Date: Mon, 5 Dec 2022 00:46:35 +0000 Subject: [PATCH] fix: update sed in cleanup workflow with delete Update the sed command when deleting lines from the .pre-commit-config file with the correct syntax. Without adding `d` to the line number, the sed invocation fails with the following error message: `sed: -e expression #1, char 2: unknown command: `;'` --- .github/workflows/template-cleanup.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/template-cleanup.yaml b/.github/workflows/template-cleanup.yaml index 5e49585..64de40a 100644 --- a/.github/workflows/template-cleanup.yaml +++ b/.github/workflows/template-cleanup.yaml @@ -32,7 +32,7 @@ jobs: rm -f .github/workflows/deploy-pages.yaml rm -rf docs/ sed -i "/- scripts/d" .markdownlint.yaml - sed "9;19,25d" .pre-commit-config.yaml + sed "9d;19,25d" .pre-commit-config.yaml - name: Remove project license file run: |