diff mbox series

[v6,14/14] CI: make the --github-workflow-markup "github" output the default

Message ID patch-v6-14.14-0b02b186c87-20220525T100743Z-avarab@gmail.com (mailing list archive)
State New, archived
Headers show
Series CI: js/ci-github-workflow-markup rebased on "use $GITHUB_ENV" | expand

Commit Message

Ævar Arnfjörð Bjarmason May 25, 2022, 11:26 a.m. UTC
As noted in the preceding commit there's outstanding issues with this
output target over the "raw" one, but let's flip the default so that
the end-state of this series matches that of [1]. If we'd like we can
now easily revert back.

My ci/config/print-test-failures-output-type on my "ci-config" branch
is currently the following script, which allows for naming branches
with _CI_OUT_{GITHUB,RAW} suffixes to force a given output type:

	#!/bin/sh

	set -ex

	ref=$1
	shift
	echo "ref: $ref" >&2
	echo "arguments: $@" >&2

	case "$ref" in
	*_CI_OUT_GITHUB)
		echo github
		;;
	*_CI_OUT_RAW)
		echo raw
		;;
	esac

1. https://lore.kernel.org/git/pull.1117.v3.git.1653171536.gitgitgadget@gmail.com/

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 .github/workflows/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 4195f37c1ba..39675cbdd60 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -26,7 +26,7 @@  jobs:
       - id: print-test-failures-output-type
         name: check what output type ci/print-test-failures.sh uses
         run: |
-          type_default=raw
+          type_default=github
           type=$type_default
 
           if test -x config-repo/ci/config/print-test-failures-output-type