From fa0d37a579853c402b615ecadb5c91e677180337 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Tue, 4 Nov 2025 13:12:58 +0100 Subject: [PATCH] ci: Rewrite Bash to check inputs to Python This is shorter and easier to read. Also, according to the dev notes, Bash should not be used. --- .github/actions/configure-docker/action.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/actions/configure-docker/action.yml b/.github/actions/configure-docker/action.yml index 814f2dd1068..5c9531d3592 100644 --- a/.github/actions/configure-docker/action.yml +++ b/.github/actions/configure-docker/action.yml @@ -8,16 +8,11 @@ runs: using: 'composite' steps: - name: Check inputs - shell: bash + shell: python run: | # We expect only gha or cirrus as inputs to cache-provider - case "${{ inputs.cache-provider }}" in - gha|cirrus) - ;; - *) - echo "::warning title=Unknown input to configure docker action::Provided value was ${{ inputs.cache-provider }}" - ;; - esac + if "${{ inputs.cache-provider }}" not in ("gha", "cirrus"): + print("::warning title=Unknown input to configure docker action::Provided value was ${{ inputs.cache-provider }}") - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3