Repository: mithro/actions-includes (language: python)

Issue:
Convert action to use docker
The tool needs;
 - Latest Python version to get order preserving dicts.
 - python3-yaml installed.
 
These dependencies mean it would work well as a docker action.


Discussion / hints:
This is now done I think;
 - https://github.com/mithro/actions-includes/blob/main/docker/Dockerfile
 - https://github.com/mithro/actions-includes/blob/main/action.yml

<blockquote><img src="https://avatars.githubusercontent.com/u/21212?s=400&v=4" width="48" align="right"><div><img src="https://github.githubassets.com/favicons/favicon.svg" height="14"> GitHub</div><div><strong><a href="https://github.com/mithro/actions-includes">mithro/actions-includes</a></strong></div><div>Allows including an action inside another action (by preprosing the Yaml file). This is how composite actions should have worked. - mithro/actions-includes</div></blockquote>
<blockquote><img src="https://avatars.githubusercontent.com/u/21212?s=400&v=4" width="48" align="right"><div><img src="https://github.githubassets.com/favicons/favicon.svg" height="14"> GitHub</div><div><strong><a href="https://github.com/mithro/actions-includes">mithro/actions-includes</a></strong></div><div>Allows including an action inside another action (by preprosing the Yaml file). This is how composite actions should have worked. - mithro/actions-includes</div></blockquote>
There could still be some optimization I think?

Fix patch:
diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml
index b889f0a..2d30470 100644
--- a/.github/workflows/publish-docker-image.yml
+++ b/.github/workflows/publish-docker-image.yml
@@ -21,6 +21,7 @@ on:
   pull_request:
 
 jobs:
+
   push_to_registry:
     name: Push Docker image to GitHub Packages
     runs-on: ubuntu-latest
@@ -33,6 +34,7 @@ jobs:
           - 5000:5000
 
     steps:
+
     - uses: actions/checkout@v2
       with:
         # Always clone the full depth so git-describe works.
@@ -119,5 +121,4 @@ jobs:
         labels: ${{ steps.docker_meta.outputs.labels }}
 
     - name: Inspect
-      run: |
-        docker buildx imagetools inspect localhost:5000/$GITHUB_REPOSITORY:latest
+      run: docker buildx imagetools inspect localhost:5000/$GITHUB_REPOSITORY:latest
diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml
index 882209b..3df58ea 100644
--- a/.github/workflows/publish-to-pypi.yml
+++ b/.github/workflows/publish-to-pypi.yml
@@ -6,18 +6,17 @@ on:
       - main
 
 jobs:
-  build-n-publish:
 
+  build-n-publish:
+    runs-on: ubuntu-latest
     strategy:
       matrix:
         python-version: ['3.8', '3.9']
-        os: [ubuntu-latest]
       fail-fast: false
-
     name: ${{ matrix.python-version }}
-    runs-on: ${{ matrix.os }}
 
     steps:
+
     - uses: actions/checkout@v2
       with:
         # Always clone the full depth so git-describe works.
@@ -35,27 +34,22 @@ jobs:
         pip install -U setuptools wheel twine
 
     - name: Install package dependencies
-      run: |
-        python setup.py install
+      run: python setup.py install
 
     - name: Build distribution 📦
-      run: |
-        python setup.py sdist bdist_wheel
+      run: python setup.py sdist bdist_wheel
 
     - name: Check distribution 📦
-      run: |
-        twine check dist/*
+      run: twine check dist/*
 
     - name: Publish to Test PyPI
       env:
         TWINE_USERNAME: __token__
         TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
-      run: |
-        twine upload --skip-existing --repository testpypi dist/*
+      run: twine upload --skip-existing --repository testpypi dist/*
 
     - name: Publish to PyPI
       env:
         TWINE_USERNAME: __token__
         TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
-      run: |
-        twine upload --skip-existing dist/*
+      run: twine upload --skip-existing dist/*
diff --git a/docker/Dockerfile b/docker/Dockerfile
index c245c93..8ef6245 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,3 +1,5 @@
+# syntax=docker/dockerfile:experimental
+
 # Copyright 2021 Google LLC
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +16,7 @@
 #
 # SPDX-License-Identifier: Apache-2.0
 
-FROM python:slim-buster
+FROM python:alpine
 
 RUN \
 	python --version \


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 8095f58..1b43cbf 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -19,12 +19,14 @@ on:
   pull_request:
 
 jobs:
+
   test:
     name: Basic Test
 
     runs-on: ubuntu-latest
 
     steps:
+
     - uses: actions/checkout@v2
 
     - uses: ./