From d7285e46d8c990ed903a19b253ce499da1cc484b Mon Sep 17 00:00:00 2001 From: Antti Kervinen Date: Wed, 16 Apr 2025 13:02:56 +0300 Subject: [PATCH] Fix "invalid workflow file" github actions error The colon after "Error:" caused actionlint to report error on map in context where map is not allowed. Signed-off-by: Antti Kervinen --- .github/workflows/validate.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 90bd9357f..d21df8bc4 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -145,7 +145,8 @@ jobs: - name: verify deps run: make verify-dependencies - name: no toolchain in go.mod # See https://github.com/opencontainers/runc/pull/4717, https://github.com/dependabot/dependabot-core/issues/11933. - run: if grep -q '^toolchain ' go.mod; then echo "Error: go.mod must not have toolchain directive, please fix"; exit 1; fi + run: | + if grep -q '^toolchain ' go.mod; then echo "Error: go.mod must not have toolchain directive, please fix"; exit 1; fi commit: