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.
This commit is contained in:
1 file changed
+3
-8
@@ -8,16 +8,11 @@ runs:
|
|||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: Check inputs
|
- name: Check inputs
|
||||||
shell: bash
|
shell: python
|
||||||
run: |
|
run: |
|
||||||
# We expect only gha or cirrus as inputs to cache-provider
|
# We expect only gha or cirrus as inputs to cache-provider
|
||||||
case "${{ inputs.cache-provider }}" in
|
if "${{ inputs.cache-provider }}" not in ("gha", "cirrus"):
|
||||||
gha|cirrus)
|
print("::warning title=Unknown input to configure docker action::Provided value was ${{ inputs.cache-provider }}")
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "::warning title=Unknown input to configure docker action::Provided value was ${{ inputs.cache-provider }}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|||||||
Reference in new issue
Block a user